:root {
  --font-main: "Inter", sans-serif;
  --font-heading: "Inter", sans-serif;
  
  --color-primary: #245cf6;
  --color-primary-dark: #1747c9;
  --color-text: #111827;
  --color-text-soft: #5b6474;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #eef3fb;
  --color-border: #e6e8ee;
  --color-footer: #08132b;
  --color-placeholder: #4b5563;

  --shadow-card: 0 10px 24px rgba(17, 24, 39, 0.08);
  --radius-xl: 2rem;
  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;

  --container: min(92%, 1600px);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  margin: 0;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  padding-top: 5rem;
  overflow-x: hidden;
}

.brand-name,
.nav-link,
.btn,
.section-heading h2,
.hero-copy h1,
.about-text h2,
.cta-box h2,
.feature-card h3,
.footer-grid h3 {
  font-family: var(--font-heading);
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

/*---------------------- HEADER ----------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e8ee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #23407e;
}

.brand-role {
  font-size: 1rem;
  color: var(--color-text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 0.1rem;
}

.nav-link.active {
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -3px;
  width: calc(100% + 12px);
  height: 2px;
  background: transparent;
  border-radius: 999px;
  transition: 0.2s;
}

.nav-link:hover::after {
  background: rgba(36, 92, 246, 0.4);
}

.nav-link.active::after {
  background: var(--color-primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  z-index: 1100;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 1.5rem;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    opacity 0.25s ease,
    top 0.3s ease,
    bottom 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0.72rem;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0.72rem;
}

.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/*---------------------- BUTTONS ----------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: white;
  border-color: #d9dde7;
  color: var(--color-text);
}

.btn-secondary:hover {
  background: #f8fafc;
}


/*---------------------- HERO ----------------------*/
.hero {
  padding: 1rem 0 3rem;
}

.hero-box {
  background: #F4F9FF;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
  min-height: 800px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: 55%;
  position: relative;
  z-index: 2;
}

.hero-media {
  position: absolute;
  right: 6%;
  bottom: 0;
  height: 100%;
  width: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-img {
  display: block;
  height: min(94%, 720px);
  width: auto;
  max-width: none;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 2rem;
  font-weight: 800;
}

.hero-copy p {
  max-width: 36rem;
  color: var(--color-text-soft);
  font-size: clamp(1.3rem, 1.6vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/*---------------------- SCROLL HINT HERO ----------------------*/
#scrollHint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 3.75rem;
  height: 3.75rem;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollHint.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.75rem);
}

.scroll-hint-icon {
  width: 1.6rem;
  height: 1.6rem;
  animation: scrollHintBounce 1.4s ease-in-out infinite;
}

#perche-studio {
  scroll-margin-top: 8rem;
}

@keyframes scrollHintBounce {
  0%, 100% {
    transform: translateY(-0.15rem);
  }
  50% {
    transform: translateY(0.25rem);
  }
}

/*---------------------- SECTIONS ----------------------*/
.section {
  padding: 1rem 0 5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.section-heading p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text-soft);
}

/*---------------------- CARDS ----------------------*/
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(230, 232, 238, 0.7);
}

.icon{
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: #e9f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/*---------------------- ABOUT ----------------------*/
.about-box {
  background: #f2f4f7;
  border-radius: 0;
  padding: 3rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text {
  max-width: 45rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
  font-weight: 800;
}

.about-text p {
  color: var(--color-text-soft);
  margin: 0 0 1.2rem;
  font-size: 1.03rem;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-media {
  padding: 5rem 0 1rem 0;
  overflow: hidden;
}

/*---------------------- CTA ----------------------*/
.cta {
  padding: 2rem 0 3rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: white;
  border-radius: 1.5rem;
  padding: clamp(6rem, 4vw, 4rem);
  margin-top: 2rem;
  text-align: center;
}

.cta-calendar-decor {
  position: absolute;
  right: -0.05rem;
  bottom: -0.05rem;
  width: min(30%, 12rem);
  aspect-ratio: 194 / 194;
  color: rgba(74, 85, 101, 0.36);
  pointer-events: none;
}

.cta-calendar-frame,
.cta-calendar-dots {
  position: absolute;
  display: block;
}

.cta-calendar-frame {
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-calendar-dots {
  width: 71.65%;
  height: auto;
  left: 16.5%;
  top: 51.5%;
}

.cta-box h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-box p {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

.cta-decor {
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: min(18%, 9rem);
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.18);
  border-top-left-radius: 1rem;
}

.cta .btn-secondary {
  color: var(--color-primary);
}

/*---------------------- FOOTER ----------------------*/
.site-footer {
  background: var(--color-footer);
  color: white;
  margin-top: 1rem;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-grid p {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2rem;
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-social {
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transition: 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.social-link:hover {
  background: #0A66C2;
}

.privacy-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-size: 1.1rem;
  padding-bottom: 0.6rem;
}

.privacy-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/*---------------------- UTILITIES ----------------------*/
.desktop-only {
  display: block;
}

/*---------------------- BACK TO TOP ----------------------*/
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999rem;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    padding 0.3s ease;
  gap: 0;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  width: 8rem;
  justify-content: flex-start;
  padding-left: 1rem;
  gap: 0.5rem;
}

.top-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  display: block;
  transform: translateY(-0.03rem);
}

.top-text {
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width 0.3s ease,
    opacity 0.2s ease;
}

#backToTop:hover .top-text {
  max-width: 5rem;
  opacity: 1;
}

/*---------------------- ANIMATIONS ----------------------*/
.reveal {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(2rem);
}

.reveal-left {
  transform: translateX(-2rem);
}

.reveal-right {
  transform: translateX(2rem);
}

.reveal-hero {
  transform: translateY(1.5rem);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/*---------------------- RESPONSIVE ----------------------*/

@media (max-width: 1300px) and (min-width: 1101px) {
  .hero-img {
    padding-left: 8rem;
  }

  .hero-box {
    min-height: 600px;
  }
  
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hero-box {
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 0;
  }

  .hero-copy {
    width: 100%;
    order: 2;
    text-align: left;
  }

  .hero-media {
    position: static;
    order: 1;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1.25rem;
  }

  .hero-img {
    height: auto;
    width: min(100%, 430px);
    max-width: 100%;
  }

  .about-media {
    padding: 1rem 0;
    overflow: hidden;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 5rem;
    right: 4%;
    left: 4%;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .main-nav ul,
  .main-nav .nav-cta {
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .main-nav.open ul,
  .main-nav.open .nav-cta {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.open ul {
    transition-delay: 0.05s;
  }

  .main-nav.open .nav-cta {
    transition-delay: 0.1s;
  }

  .main-nav li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    padding-bottom: 0.9rem; 
  }

  .nav-link::after {
    content: none;
  }

  .nav-link.active {
    background: #eef4ff;
    color: var(--color-primary);
    font-weight: 600;
  }

  .nav-link:hover {
    background: #f5f8ff;
    color: var(--color-primary);
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta {
  padding: 1.5rem 0 2rem;
  }

  .cta-box {
    padding: 2rem 1.25rem;
    min-height: 0;
    border-radius: 1.5rem;
  }

  .cta-box h2 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .cta-box p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
  }

  .cta-box .btn {
    min-height: 2.8rem;
    padding: 0 1.2rem;
    font-size: 1rem;
  }

  .cta-calendar-decor {
    width: 20%;
    right: 0.02rem;
    bottom: 0.02rem;
  }
}


@media (max-width: 1100px) and (min-width: 641px) {
  .hero-box {
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 2rem 2.5rem;
  }

  .hero-copy {
    width: 100%;
    order: 2;
  }

  .hero-media {
    order: 1;
    position: relative;
    width: min(52vw, 420px);
    aspect-ratio: 1 / 1;
    left: 0.1%;
    margin-bottom: 3rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf1fb;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-img {
    position: relative;
    width: 98%;
    height: auto;
    max-width: none;
    transform: translateY(200px);
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
  }

  .hero-copy p {
    max-width: 100%;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .hero-actions .btn {
    min-height: 3.1rem;
    padding: 0 1.5rem;
  }

  #scrollHint {
    display: none;
  }

  #backToTop {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-box {
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-media {
    order: 1;
    width: min(62vw, 260px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf1fb;

    display: flex;
    justify-content: center;   
    align-items: flex-end;     
  }

  .hero-img {
    width: 105%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(150px);
  }

  .hero-copy {
    width: 100%;
    order: 2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 2rem;
    line-height: 1.1;
    text-align: center;
  }

  .hero-copy p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta {
  padding: 1.5rem 0 2rem;
  }

  .cta-box {
    padding: 2rem 1.25rem;
    min-height: 0;
    border-radius: 1.5rem;
  }

  .cta-box h2 {
    font-size: 1.3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .cta-box p {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
  }

  .cta-box .btn {
    min-height: 2.8rem;
    padding: 0 1.2rem;
    font-size: 1rem;
  }

  .cta-calendar-decor {
    width: 20%;
    right: 0.02rem;
    bottom: 0.02rem;
  }

  #scrollHint {
    display: none;
  }

  #backToTop {
    display: none;
  }
}