/* ===================================================================
   Nexona — landing page
   Palette derived from the logo: clay-brown wordmark + sage-green ring
   =================================================================== */

:root{
  --paper:      #F7F4EE;   /* warm off-white background            */
  --paper-2:    #EFEBE1;   /* slightly deeper paper                */
  --card:       #FFFFFF;
  --ink:        #2B2621;   /* near-black warm text                 */
  --clay:       #4A3E33;   /* NEXONA wordmark brown                */
  --clay-soft:  #6A5B4C;   /* muted brown for body text            */
  --sage:       #8AA48F;   /* logo ring green                      */
  --sage-600:   #5E7E68;   /* deeper sage for accents/CTA          */
  --sage-700:   #4B6A56;
  --line:       #E4DED2;   /* hairline borders                     */
  --line-2:     #D8D0C1;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(43,38,33,.04), 0 4px 14px rgba(43,38,33,.05);
  --shadow-md: 0 4px 12px rgba(43,38,33,.06), 0 20px 44px rgba(43,38,33,.09);

  --maxw: 1160px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 17px;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

.wrap{ width:100%; max-width: var(--maxw); margin-inline:auto; padding-inline: 24px; }

.skip{
  position:absolute; left:-999px; top:0; z-index:100;
  background: var(--clay); color:#fff; padding:10px 16px; border-radius:0 0 var(--r-sm) 0;
}
.skip:focus{ left:0; }

/* ---------- shared type ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--sage-600); margin:0 0 18px;
  display:inline-flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:26px; height:1px; background: var(--sage); display:inline-block; }
.eyebrow--light{ color:#B9CBBD; }
.eyebrow--light::before{ background:#B9CBBD; }

.section__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
}
.section__sub{ color: var(--clay-soft); margin: 16px 0 0; max-width: 54ch; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:500; font-size:15px;
  padding: 13px 22px; border-radius: 999px; border:1px solid transparent;
  cursor:pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:focus-visible{ outline: 2px solid var(--sage-600); outline-offset:3px; }
.btn--dark{ background: var(--clay); color:#F7F4EE; box-shadow: var(--shadow-sm); }
.btn--dark:hover{ background:#3a3128; }
.btn--ghost{ background: transparent; border-color: var(--line-2); color: var(--clay); }
.btn--ghost:hover{ border-color: var(--clay); background: rgba(74,62,51,.03); }
.btn--sage{ background: var(--sage-600); color:#fff; }
.btn--sage:hover{ background: var(--sage-700); }
.btn--lg{ padding: 16px 28px; font-size: 16px; }

/* ===================== NAV ===================== */
.nav{
  position: sticky; top:0; z-index:50;
  background: rgba(247,244,238,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner{ display:flex; align-items:center; gap:24px; height:72px; }
.nav__brand img{ height: 30px; width:auto; }
.nav__links{ display:flex; gap:30px; margin-left: 12px; }
.nav__links a{
  font-size: 15px; color: var(--clay-soft); font-weight:450;
  position:relative; padding: 6px 0; transition: color .16s;
}
.nav__links a:hover{ color: var(--ink); }
.nav__links a::after{
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:0;
  background: var(--sage-600); transition: width .2s ease;
}
.nav__links a:hover::after{ width:100%; }
.nav__cta{ margin-left:auto; }
.nav__burger{
  display:none; margin-left:auto; background:none; border:0; cursor:pointer;
  width:40px; height:40px; flex-direction:column; gap:5px; align-items:center; justify-content:center;
}
.nav__burger span{ width:22px; height:2px; background: var(--clay); border-radius:2px; transition:.2s; }
.mobileNav{ display:none; flex-direction:column; gap:6px; padding:14px 24px 22px; border-bottom:1px solid var(--line); background: var(--paper); }
.mobileNav a{ padding:12px 4px; color: var(--clay); border-bottom:1px solid var(--line); font-family:var(--font-display); }
.mobileNav a:last-child{ border:0; margin-top:8px; }

/* ===================== HERO ===================== */
.hero{ padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 92px); position:relative; overflow:hidden; }
.hero__grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center; }
.hero__title{
  font-family: var(--font-display); font-weight:600;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.06; letter-spacing:-0.03em; margin: 0 0 24px;
  max-width: 15ch;
}
.hero__title .hl{ color: var(--sage-600); position:relative; white-space:nowrap; }
.hero__title .hl::after{
  content:""; position:absolute; left:0; right:0; bottom:.06em; height:.22em;
  background: linear-gradient(180deg, transparent 55%, rgba(138,164,143,.4) 55%);
  border-radius:2px;
}
.hero__lede{ font-size: 1.12rem; color: var(--clay-soft); max-width: 50ch; margin: 0 0 32px; }
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 38px; }
.hero__stack{
  list-style:none; margin:0; padding:22px 0 0; display:flex; flex-wrap:wrap; gap: 10px 22px;
  border-top:1px solid var(--line); align-items:center;
}
.hero__stack li{
  font-family: var(--font-mono); font-size: 13px; color: var(--clay-soft);
  letter-spacing:.02em;
}
.hero__stack li::before{ content:"◦"; color: var(--sage); margin-right:9px; }

/* --- signature: orbiting open ring --- */
.hero__orbit{ display:flex; align-items:center; justify-content:center; }
.orbit{ position:relative; width: min(440px, 86vw); aspect-ratio:1; }
.orbit__ring{
  position:absolute; inset:0; border-radius:50%;
  border: 1.5px solid var(--line-2);
  /* open ring — like the logo — via conic mask */
  -webkit-mask: conic-gradient(from 220deg, #000 0 300deg, transparent 300deg 360deg);
          mask: conic-gradient(from 220deg, #000 0 300deg, transparent 300deg 360deg);
}
.orbit__ring--1{ inset:0;   border-color: var(--sage); border-width:2px; animation: spin 34s linear infinite; }
.orbit__ring--2{ inset:14%; border-color: var(--line-2); animation: spin 26s linear infinite reverse; }
.orbit__ring--3{ inset:30%; border-color: var(--sage); opacity:.55; animation: spin 20s linear infinite; }
.orbit__core{
  position:absolute; inset:41%; border-radius:50%;
  background: var(--clay); color:#F7F4EE;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size: clamp(20px, 4.4vw, 34px);
  box-shadow: var(--shadow-md);
}
.orbit__chip{
  position:absolute; font-family: var(--font-mono); font-size: 12.5px;
  background: var(--card); color: var(--clay); border:1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
  white-space:nowrap;
}
.orbit__chip--a{ top: 4%;  left: 50%; transform: translateX(-50%); }
.orbit__chip--b{ top: 44%; right:-6%; }
.orbit__chip--c{ bottom: 6%; left: 8%; }
.orbit__chip--d{ top: 40%; left:-6%; }
@keyframes spin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .orbit__ring{ animation:none !important; } }

/* ===================== PROOF STRIP ===================== */
.proof{ background: var(--clay); color: #EDE7DC; }
.proof__inner{ padding: 26px 24px; display:flex; gap: 28px; align-items:baseline; flex-wrap:wrap; }
.proof__tag{
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--sage); margin:0; white-space:nowrap;
}
.proof__line{ margin:0; color:#D7CFC2; font-size: 15px; max-width: 78ch; }

/* ===================== SECTIONS ===================== */
.section{ padding: clamp(64px, 9vw, 120px) 0; }
.section--paper{ background: var(--paper-2); }
.section__head{ margin-bottom: clamp(38px, 5vw, 60px); max-width: 60ch; }

/* --- services cards --- */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon{
  width:52px; height:52px; border-radius: 14px; display:flex; align-items:center; justify-content:center;
  background: rgba(138,164,143,.14); color: var(--sage-700); margin-bottom: 22px;
}
.card__icon svg{ width:26px; height:26px; }
.card__title{ font-family: var(--font-display); font-weight:600; font-size: 1.28rem; margin:0 0 12px; letter-spacing:-.01em; }
.card__body{ color: var(--clay-soft); margin:0 0 20px; font-size: 15.5px; }
.card__list{ list-style:none; margin:0; padding:18px 0 0; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:9px; }
.card__list li{ font-family: var(--font-mono); font-size: 13px; color: var(--clay); display:flex; align-items:center; gap:10px; }
.card__list li::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--sage); flex:none; }

/* --- products --- */
.products{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product{
  background: var(--card); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; position:relative; overflow:hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product::before{
  content:""; position:absolute; right:-40px; top:-40px; width:120px; height:120px; border-radius:50%;
  border:1.5px solid var(--sage); opacity:.18;
  -webkit-mask: conic-gradient(from 200deg, #000 0 290deg, transparent 290deg);
          mask: conic-gradient(from 200deg, #000 0 290deg, transparent 290deg);
}
.product:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product--feature{
  grid-row: span 2; grid-column: 1;
  background: linear-gradient(160deg, var(--clay) 0%, #3b3128 100%);
  color:#F1EBDF; border-color: transparent;
  display:flex; flex-direction:column; justify-content:flex-end;
}
.product--feature .product__desc{ color:#CFC6B8; }
.product--feature::before{ border-color:#B9CBBD; opacity:.3; width:180px; height:180px; }
.product__badge{
  display:inline-block; font-family: var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase;
  color:#fff; background: var(--sage-600); padding:5px 11px; border-radius:999px; margin-bottom:16px; align-self:flex-start;
}
.product__badge--alt{ background: rgba(138,164,143,.16); color: var(--sage-700); }
.product__name{ font-family: var(--font-display); font-weight:600; font-size: clamp(1.4rem, 3vw, 2rem); margin:0 0 12px; letter-spacing:-.02em; }
.product__desc{ color: var(--clay-soft); margin:0; font-size: 15.5px; }

/* --- steps --- */
.steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step{ position:relative; padding-top: 30px; border-top: 2px solid var(--line-2); }
.step__num{ font-family: var(--font-mono); font-size: 13px; color: var(--sage-600); font-weight:500; letter-spacing:.06em; }
.step__title{ font-family: var(--font-display); font-weight:600; font-size:1.22rem; margin: 14px 0 10px; letter-spacing:-.01em; }
.step__body{ color: var(--clay-soft); margin:0; font-size: 15px; }

/* ===================== TEAM (dark) ===================== */
.section--dark{ background: linear-gradient(165deg, #3a3128 0%, var(--clay) 60%, #4d4136 100%); color:#EDE7DC; }
.team__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items:center; }
.section--dark .section__title{ color:#F5F1E9; }
.team__lede{ color:#CFC6B8; font-size:1.08rem; max-width: 46ch; margin: 22px 0 30px; }
.team__values{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0; }
.team__values li{ padding: 24px 0 24px 34px; border-top:1px solid rgba(237,231,220,.14); position:relative; }
.team__values li:last-child{ border-bottom:1px solid rgba(237,231,220,.14); }
/* open-ring marker echoing the logo */
.team__values li::before{
  content:""; position:absolute; left:0; top:29px; width:16px; height:16px; border-radius:50%;
  border:2px solid var(--sage);
  -webkit-mask: conic-gradient(from 210deg, #000 0 290deg, transparent 290deg);
          mask: conic-gradient(from 210deg, #000 0 290deg, transparent 290deg);
}
.value__title{ font-family: var(--font-display); font-weight:600; font-size:1.18rem; color:#F5F1E9; margin:0 0 6px; letter-spacing:-.01em; }
.value__sub{ color:#CFC6B8; font-size:15px; margin:0; max-width: 44ch; }

/* ===================== CTA ===================== */
.cta__inner{ text-align:center; max-width: 720px; margin-inline:auto; display:flex; flex-direction:column; align-items:center; }
.cta__title{ font-family: var(--font-display); font-weight:600; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing:-.025em; line-height:1.1; margin:0 0 18px; }
.cta__sub{ color: var(--clay-soft); font-size:1.08rem; max-width: 52ch; margin: 0 0 34px; }
.cta__actions{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

/* ===================== FOOTER ===================== */
.footer{ background: #26221D; color:#B7AFA2; padding: 64px 0 30px; }
.footer__inner{ display:grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 44px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer__logo{ height: 32px; width:auto; filter: brightness(0) invert(1); opacity:.9; margin-bottom:16px; }
.footer__tag{ font-family: var(--font-mono); font-size:13px; color: var(--sage); margin:0; letter-spacing:.03em; }
.footer__cols{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer__cols h4{ font-family: var(--font-display); font-weight:600; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:#EDE7DC; margin:0 0 14px; }
.footer__cols p{ margin:0 0 8px; font-size:14.5px; }
.footer__cols a:hover{ color:#F5F1E9; }
.footer__base{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:24px; font-family:var(--font-mono); font-size:12.5px; color:#7E7669; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px){
  .hero__grid{ grid-template-columns: 1fr; gap: 48px; }
  .hero__orbit{ order:-1; }
  .orbit{ width: min(320px, 68vw); }
  .orbit__chip{ font-size: 11.5px; padding: 6px 11px; }
  .orbit__chip--b{ right: 6%; top: 40%; }
  .orbit__chip--d{ left: 6%; top: 36%; }
  .orbit__chip--a{ top: 1%; }
  .orbit__chip--c{ bottom: 2%; left: 12%; }
  .cards, .products, .steps{ grid-template-columns: 1fr 1fr; }
  .product--feature{ grid-row: auto; grid-column: 1 / -1; }
  .team__grid{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; gap:32px; }
}
@media (max-width: 720px){
  .nav__links, .nav__cta{ display:none; }
  .nav__burger{ display:flex; }
  .nav.is-open .mobileNav{ display:flex; }
  .nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .cards, .products, .steps, .footer__cols{ grid-template-columns: 1fr; }
  .proof__inner{ gap:12px; }
}
