/* ============================================================
   minth — landing styles
   Palette: ink black · paper white · silver · muted elegant green
   Per-product accents layered over the core theme.
   ============================================================ */

:root {
  /* core */
  --ink:        #0a0b0a;   /* near-black background */
  --ink-2:      #101211;   /* raised surface */
  --ink-3:      #161917;   /* card surface */
  --hair:       rgba(207, 214, 210, 0.10); /* hairline borders */
  --hair-2:     rgba(207, 214, 210, 0.16);

  /* type */
  --paper:      #f4f6f4;   /* primary text on dark */
  --silver:     #aeb6b2;   /* secondary text */
  --silver-dim: #767e7a;   /* muted text */

  /* green — muted, elegant sage (minth's signature) */
  --green:      #8fb09e;
  --green-soft: #a9c4b6;
  --green-deep: #4f6b5c;
  --green-glow: rgba(143, 176, 158, 0.16);

  /* metal gradient */
  --metal: linear-gradient(135deg, #e7ebe8 0%, #b9c1bc 40%, #8fb09e 100%);

  --radius:   18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-disp: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif; /* reserved for the mⁿ mark */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--green-glow); color: var(--paper); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); font-weight: 500;
}
.grad {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.85em 1.5em; border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  border: 1px solid transparent; cursor: pointer; will-change: transform;
}
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 12px 30px -12px rgba(143,176,158,0.5); }
.btn--ghost { color: var(--paper); border-color: var(--hair-2); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--green); color: var(--green-soft); }
.btn--ghost span { transition: transform 0.3s var(--ease); }
.btn--ghost:hover span { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 11, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hair);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* brand mark — m to the nth power */
.brand { display: inline-flex; align-items: center; gap: 0.65em; }
.brand__badge {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--hair-2);
  background: radial-gradient(120% 120% at 30% 20%, rgba(143,176,158,0.18), rgba(143,176,158,0.03));
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.brand:hover .brand__badge { transform: translateY(-1px); border-color: var(--green); }
.brand__mark {
  font-family: var(--font-serif); font-weight: 500; font-size: 1.18rem; line-height: 1;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: flex-start;
}
.brand__mark sup { font-size: 0.62em; font-weight: 500; margin-left: 0.02em; top: -0.1em; }
.brand__word { font-family: var(--font-disp); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.92rem; color: var(--silver); transition: color 0.25s var(--ease); }
.nav__links a:hover { color: var(--paper); }
.nav__cta {
  color: var(--paper) !important; border: 1px solid var(--hair-2);
  padding: 0.55em 1.15em; border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease) !important;
}
.nav__cta:hover { border-color: var(--green); color: var(--green-soft) !important; }

.nav__menu { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__menu span { width: 22px; height: 1.5px; background: var(--paper); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 88px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 40%, var(--green-glow) 0%, rgba(143,176,158,0.04) 45%, transparent 72%);
  filter: blur(8px);
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.hero .eyebrow { display: inline-block; margin-bottom: 1.4rem; }
.hero__title {
  font-family: var(--font-disp); font-weight: 600;
  font-size: clamp(2.5rem, 6.6vw, 4.7rem); line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--silver);
  max-width: 660px; margin: 0 auto 2.4rem; font-weight: 300;
}
.hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  margin-top: 2.6rem; display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; color: var(--silver-dim); font-size: 0.86rem; letter-spacing: 0.02em;
}
.hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--green-deep); display: inline-block; }

.ticker {
  position: relative; z-index: 2; list-style: none;
  margin: 80px auto 0; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-disp); font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--silver-dim); opacity: 0.5; letter-spacing: -0.01em;
}

/* ---------- hero intro animation ---------- */
/* Understated: a slow, quiet fade for the headline (no movement), plus a slow,
   subtle sheen that drifts across the metal gradient on the second line. */
.hero__title .grad { background-size: 150% auto; }

@keyframes heroFade       { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroFadeTicker { from { opacity: 0; } to { opacity: 0.5; } }
@keyframes heroSheen      { 0%, 100% { background-position: 0% center; } 50% { background-position: 150% center; } }

/* Run only with JS (so no-JS shows everything) and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  /* ease-in-out + longer durations so elements ease in gently, never popping in */
  .js .hero__eyebrow { opacity: 0; animation: heroFade 1.6s ease-in-out 0.15s forwards; }
  .js .hero__title   { opacity: 0; animation: heroFade 2s   ease-in-out 0.45s forwards; }
  /* slow, barely-there sheen drifting across the metal gradient */
  .js .hero__title .grad { animation: heroSheen 9s ease-in-out 2s infinite; }
  .js .hero__lede    { opacity: 0; animation: heroFade 1.7s ease-in-out 0.95s forwards; }
  .js .hero__actions { opacity: 0; animation: heroFade 1.7s ease-in-out 1.2s forwards; }
  .js .hero__meta    { opacity: 0; animation: heroFade 1.7s ease-in-out 1.45s forwards; }
  .js .ticker        { opacity: 0; animation: heroFadeTicker 1.7s ease-in-out 1.7s forwards; }
}

/* ---------- section heads ---------- */
.section__head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section__head .eyebrow { display: block; margin-bottom: 1rem; }
.section__title {
  font-family: var(--font-disp); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; margin-bottom: 0.9rem;
}

/* ---------- facets ---------- */
.facets { padding: 84px 0 24px; border-top: 1px solid var(--hair); }
.facets__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.facets__inner .eyebrow { display: block; margin-bottom: 1rem; }
.facets__title {
  font-family: var(--font-disp); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.14; margin-bottom: 0.8rem;
}
.facets__sub { color: var(--silver); font-weight: 300; font-size: 1.02rem; max-width: 560px; margin: 0 auto; }
.facet-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem;
}
.facet-chips li {
  font-size: 0.88rem; color: var(--silver); padding: 0.6em 1.1em; border-radius: 999px;
  border: 1px solid var(--hair-2); background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.facet-chips li:hover { color: var(--green-soft); border-color: var(--green-deep); }
.facet-chips li:last-child { color: var(--silver-dim); font-style: italic; border-style: dashed; }

/* ---------- products (lines) ---------- */
.products { padding: 72px 0 96px; }
.lines { display: flex; flex-direction: column; gap: 24px; }

.line {
  --accent: var(--green);
  display: grid; grid-template-columns: 1.05fr 1.25fr;
  border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.line:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--hair-2));
  box-shadow: 0 26px 60px -30px rgba(0,0,0,0.75);
}
.line:nth-child(even) .line__visual { order: 2; border-right: 0; border-left: 1px solid var(--hair); }

.line__visual {
  position: relative; min-height: 230px; padding: 30px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--hair); overflow: hidden;
  background:
    radial-gradient(120% 120% at 18% 12%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, #0d100f), #0a0c0b);
}
.line__visual-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.line__chip-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.line__index {
  font-family: var(--font-disp); font-size: 0.95rem; letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--accent) 70%, var(--silver-dim));
}
.line__wm {
  position: relative; z-index: 2;
  font-family: var(--font, var(--font-disp)); font-weight: 600; letter-spacing: -0.04em;
  font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 75%, white), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.line__body { padding: 32px 36px; display: flex; flex-direction: column; gap: 0.85rem; justify-content: center; }
.line__facet {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: color-mix(in srgb, var(--accent) 78%, var(--paper));
}
.line__tagline { font-size: 1.12rem; color: var(--paper); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; }
.line__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.line__chips li {
  font-size: 0.78rem; padding: 0.4em 0.85em; border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 55%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--hair-2));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.line__link {
  margin-top: 0.7rem; align-self: flex-start; font-size: 0.9rem; font-weight: 500;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.45em;
}
.line__link span { transition: transform 0.3s var(--ease); }
.line__link:hover span { transform: translateX(4px); }

/* ---------- about ---------- */
.about { padding: 96px 0; border-top: 1px solid var(--hair); }
.about__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.about__text { color: var(--silver); font-weight: 300; margin-top: 1.2rem; font-size: 1.08rem; }
.about__copy .section__title { margin-top: 1rem; }
.about__text .nth { color: var(--green-soft); font-family: var(--font-serif); font-weight: 500; }
.about__stats { display: flex; flex-direction: column; gap: 8px; }
.stat {
  display: flex; align-items: baseline; gap: 1rem; padding: 22px 26px;
  border: 1px solid var(--hair); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.stat__num { font-family: var(--font-disp); font-weight: 600; font-size: 2.3rem; line-height: 1; color: transparent; background: var(--metal); -webkit-background-clip: text; background-clip: text; min-width: 1.4em; }
.stat__lab { color: var(--silver); font-size: 0.92rem; font-weight: 300; }

/* ---------- cta ---------- */
.cta { padding: 110px 0; }
.cta__inner {
  position: relative; text-align: center; max-width: 780px; margin: 0 auto;
  padding: 72px 40px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--hair-2);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--green-glow), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.cta__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.12; }
.cta__sub { color: var(--silver); font-weight: 300; margin: 1rem auto 2rem; max-width: 480px; }
.cta__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hair); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__tag { color: var(--silver-dim); font-size: 0.9rem; margin-top: 1rem; font-weight: 300; max-width: 240px; }
.footer__nav { display: flex; gap: 72px; }
.footer__nav h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 1rem; font-weight: 500; }
.footer__nav a { display: block; color: var(--silver); font-size: 0.94rem; margin-bottom: 0.6rem; transition: color 0.25s var(--ease); }
.footer__nav a:hover { color: var(--green-soft); }
.footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair);
  color: var(--silver-dim); font-size: 0.84rem;
}

/* ---------- reveal animation ---------- */
/* Only hide content when JS is active (html.js); without JS everything shows. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
    position: absolute; top: 72px; left: 0; right: 0; padding: 28px;
    background: rgba(10,11,10,0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hair);
  }
  .hero { padding-top: 132px; }
  .line { grid-template-columns: 1fr; }
  .line__visual, .line:nth-child(even) .line__visual {
    order: 0; border-right: 0; border-left: 0; border-bottom: 1px solid var(--hair); min-height: 150px;
  }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__nav { gap: 48px; }
}
@media (max-width: 420px) {
  .container { padding: 0 20px; }
  .cta__inner { padding: 48px 24px; }
  .line__body { padding: 26px 24px; }
}
