/* =========================================================
   INNOKEA — Design Tokens
   ========================================================= */
:root{
  --ink:        #0F172A;
  --accent:     #10B981;
  --accent-2:   #6EE7B7;
  --bg:         #F8FAFC;
  --text:       #1E293B;
  --muted:      #64748B;
  --border:     #E2E8F0;

  --font-display: "Space Grotesk", "Noto Sans Devanagari", sans-serif;
  --font-body:    "Inter", "Noto Sans Devanagari", sans-serif;

  --max-w: 1140px;
  --gutter: clamp(24px, 6vw, 96px);
  --section-pad: clamp(72px, 12vw, 160px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

html[lang="hi"]{
  --font-display: "Noto Sans Devanagari", "Space Grotesk", sans-serif;
  --font-body:    "Noto Sans Devanagari", "Inter", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   Eyebrow / dot marker (signature motif borrowed from mark)
   ========================================================= */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent));
  box-shadow: 0 0 9px 1px rgba(16, 185, 129, 0.55);
  flex: none;
}
html[lang="hi"] .eyebrow{ letter-spacing: 0; text-transform: none; font-weight: 500; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,250,252,0.82);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled{ border-bottom-color: var(--border); }

.site-header .wrap{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  z-index: 1;
}
.brand img{ height: 48px; width: 48px; object-fit: contain; flex: none; }

.site-nav{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-nav a{
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-block: 4px;
}
.site-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.site-nav a:hover::after{ right: 0; }

.header-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.lang-toggle{
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: #fff;
}
.lang-toggle button{
  border: none;
  background: transparent;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-toggle button[aria-pressed="true"]{
  background: var(--ink);
  color: #fff;
}

.nav-toggle{
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before{ position: absolute; top: -7px; }
.nav-toggle span::after{ position: absolute; top: 7px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--ink);
}
.btn-primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* =========================================================
   Arc motif — signature decorative element
   ========================================================= */
.arc-decor{
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.arc-decor svg{ display: block; overflow: visible; }
.arc-decor path{
  fill: none;
  stroke-linecap: round;
}
.arc-glow svg{
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.45));
}
.arc-draw path{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-arc 2.4s var(--ease) forwards;
  animation-delay: .3s;
}
@keyframes draw-arc{
  to{ stroke-dashoffset: 0; }
}

.section-divider{
  position: relative;
  height: 1px;
}
.section-divider svg{
  position: absolute;
  overflow: visible;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  padding-top: clamp(160px, 22vw, 240px);
  padding-bottom: clamp(90px, 12vw, 140px);
  overflow: hidden;
  background: var(--ink);
}
.hero .arc-decor{
  top: -120px;
  right: -160px;
  width: min(720px, 90vw);
}
.hero .arc-decor.arc-small{
  top: auto;
  bottom: -60px;
  left: -120px;
  right: auto;
  width: 260px;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero .eyebrow{ color: rgba(255,255,255,0.6); }
.hero h1{
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 26px;
  color: #fff;
}
.hero .lede{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 44px;
}
.hero .cta-row{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero .btn-ghost{
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.hero .btn-ghost:hover{
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* =========================================================
   Section shell
   ========================================================= */
.section{
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border);
}
.section-flush{ border-top: none; }
.section-tint{
  background: linear-gradient(180deg, #F1FBF7 0%, var(--bg) 100%);
}

.section-grid{
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.section-grid .col-head{ position: sticky; top: 120px; }
.section-grid h2{
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.18;
}
.section-grid .col-body p{
  font-size: 1.05rem;
  color: var(--text);
  max-width: 620px;
}

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Dark section variant (used for "Why We Exist") */
.section-dark{
  background: var(--ink);
  border-top-color: var(--ink);
}
.section-dark h2, .section-dark .eyebrow{ color: #fff; }
.section-dark .eyebrow{ color: rgba(255,255,255,0.6); }
.section-dark .col-body p{ color: rgba(255,255,255,0.78); }

/* Never list */
.never-list{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.never-list li{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text);
}
.never-list li:last-child{ border-bottom: 1px solid var(--border); }
.never-list li::before{
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* =========================================================
   Get in Touch (contact) section
   ========================================================= */
.contact-section{
  background: var(--bg);
}
.contact-panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(48px, 9vw, 96px) clamp(28px, 6vw, 72px);
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-panel .arc-decor{
  bottom: -140px;
  right: -140px;
  width: 380px;
}
.contact-copy{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-copy .eyebrow{ justify-content: center; }
.contact-copy h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-copy p{ color: var(--muted); max-width: 460px; margin-bottom: 32px; }
.contact-email{ font-size: 16px; padding: 15px 34px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  border-top: none;
  padding-block: 56px;
  background: var(--ink);
}
.footer-top{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}
.footer-brand img{ height: 38px; width: 38px; object-fit: contain; flex: none; }
.footer-links{
  display: flex;
  gap: clamp(16px,3vw,32px);
  flex-wrap: wrap;
}
.footer-links a{ font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-links a:hover{ color: var(--accent-2); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   Letters page
   ========================================================= */
.letters-hero{
  padding-top: clamp(150px, 20vw, 210px);
  padding-bottom: clamp(50px, 8vw, 90px);
  position: relative;
}
.letters-hero h1{
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 18px;
}
.letters-hero p{ color: var(--muted); max-width: 560px; font-size: 1.05rem; }

.letters-list{
  padding-bottom: clamp(80px, 10vw, 140px);
}
.letter-card{
  padding-block: 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0,220px) minmax(0,1fr);
  gap: clamp(20px, 4vw, 56px);
}
.letter-card:last-child{ border-bottom: 1px solid var(--border); }
.letter-date{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="hi"] .letter-date{ text-transform: none; letter-spacing: 0; }
.letter-card h2{
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 14px;
}
.letter-card p{ color: var(--text); max-width: 640px; margin-bottom: 16px; }
.letter-sign{ color: var(--muted); font-size: 14px; font-style: italic; }
html[lang="hi"] .letter-sign{ font-style: normal; }

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
}
.back-link::before{ content: "←"; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px){
  .section-grid{ grid-template-columns: 1fr; }
  .section-grid .col-head{ position: static; }
  .letter-card{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .site-nav{
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter) 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle{ display: block; }
  .site-nav a{ width: 100%; }
}
