/* ==========================================================================
   LinnONE | Design System
   Cores, tipografia e componentes conforme brand guide oficial.
   Nunca usar preto puro (#000). Fundo padrão #1D1D1D. Acento dominante #EDFF00.
   ========================================================================== */

:root {
  /* Cores */
  --lime: #EDFF00;
  --lime-2: #D6FE00;
  --lime-3: #B5FE01;
  --teal: #0C4651;
  --bg-dark: #1D1D1D;
  --bg-dark-alt1: #141414;
  --bg-dark-alt2: #111111;
  --bg-mid: #262626;
  --bg-card-dark: #2A2A2A;
  --off-white: #F6F6F6;
  --white: #FFFFFF;
  --text-dark-primary: #F6F6F6;
  --text-dark-secondary: #B7B7B0;
  --text-light-primary: #1D1D1D;
  --text-light-secondary: #4A4A45;

  /* Tipografia */
  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --fs-display: clamp(2.4rem, 5vw, 3.5rem);
  --fs-h1: clamp(1.9rem, 3.6vw, 2.4rem);
  --fs-h2: clamp(1.4rem, 2.4vw, 1.6rem);
  --fs-h3: 1.15rem;
  --fs-body: 0.98rem;
  --fs-caption: 0.78rem;

  /* Layout */
  --container: 1180px;
  --radius-cut: 18px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;

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

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

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-dark-primary);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--text-dark-secondary); }
.on-light p { color: var(--text-light-secondary); }

.display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.02em; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); font-weight: 600; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 500; }

.mono { font-family: var(--font-mono); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 1rem;
}
.on-light .kicker { color: var(--teal); }
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.on-dark  { background: var(--bg-dark); color: var(--text-dark-primary); }
.on-dark  p { color: var(--text-dark-secondary); }
.on-light { background: var(--off-white); color: var(--text-light-primary); }
.on-light p { color: var(--text-light-secondary); }
.on-teal  { background: var(--teal); color: var(--off-white); }
.on-teal  p { color: #C9DDE0; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-copy { max-width: 640px; }

/* ---------- Cut-corner motif ---------- */
/* Assinatura visual do pitch: cantos opostos cortados, nunca arredondados. */
.cut {
  clip-path: polygon(
    var(--radius-cut) 0, 100% 0, 100% calc(100% - var(--radius-cut)),
    calc(100% - var(--radius-cut)) 100%, 0 100%, 0 var(--radius-cut)
  );
}
.cut-sm {
  --radius-cut: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), opacity .2s var(--ease);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--bg-dark); }
.btn-primary:hover { background: var(--lime-2); }
.btn-outline {
  background: transparent;
  color: var(--lime);
  box-shadow: inset 0 0 0 1.5px var(--lime);
}
.on-light .btn-outline { color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn-outline:hover { background: rgba(237,255,0,0.08); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(29,29,29,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246,246,246,0.08);
  transition: background .3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; }
.brand .word-one { color: var(--off-white); }
.brand .word-ne { color: var(--lime); }
.brand-logo { height: 38px; width: auto; display: block; }
.footer-grid .brand-logo { height: 32px; }
@media (max-width: 480px) { .brand-logo { height: 32px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-dark-secondary); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--off-white); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--bg-dark); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--lime);
}
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--off-white); margin: 0 auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg-dark-alt1);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(246,246,246,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 4.5rem);
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(237,255,0,0.10), transparent 60%),
    var(--bg-dark);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gutter);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: var(--fs-display); margin-bottom: 0.6em; }
.hero .lead { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(237,255,0,0.08); color: var(--lime);
  border: 1px solid rgba(237,255,0,0.35);
  padding: 0.4em 0.9em;
  margin-bottom: 1.4rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card-dark);
  padding: 1.9rem;
  border: 1px solid rgba(246,246,246,0.06);
}
.on-light .card { background: var(--white); border-color: rgba(29,29,29,0.06); }
.card h3 { margin-bottom: 0.5rem; }
.card .num { font-family: var(--font-mono); color: var(--lime); font-size: 0.85rem; margin-bottom: 0.8rem; display: block; }
.on-light .card .num { color: var(--teal); }

.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(237,255,0,0.1);
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.on-light .card-icon { background: rgba(12,70,81,0.08); color: var(--teal); }
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Stats ---------- */
.stat { text-align: left; }
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--lime);
  line-height: 1;
  display: block;
}
.on-light .stat .stat-num { color: var(--teal); }
.stat .stat-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dark-secondary); margin-top: .6rem; display: block; }
.on-light .stat .stat-label { color: var(--text-light-secondary); }

/* ---------- Section header ---------- */
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Pattern strip ---------- */
.pattern-strip {
  height: 4px;
  background: repeating-linear-gradient(135deg, var(--lime) 0 10px, transparent 10px 20px);
  opacity: .5;
}

/* ---------- Tags / pills ---------- */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0.35em 0.8em;
  border: 1px solid rgba(246,246,246,0.2);
  color: var(--text-dark-secondary);
}
.on-light .pill { border-color: rgba(29,29,29,0.15); color: var(--text-light-secondary); }
.pill.active { border-color: var(--lime); color: var(--lime); }
.on-light .pill.active { border-color: var(--teal); color: var(--teal); }

/* ---------- Timeline / roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(246,246,246,0.1); }
.on-light .roadmap { background: rgba(29,29,29,0.1); }
.roadmap-item { background: var(--bg-dark); padding: 1.8rem 1.5rem; }
.on-light .roadmap-item { background: var(--off-white); }
.roadmap-item .phase { font-family: var(--font-mono); font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.on-light .roadmap-item .phase { color: var(--teal); }
@media (max-width: 900px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Flywheel ---------- */
.flywheel { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.flywheel-step {
  flex: 1 1 160px;
  background: var(--bg-card-dark);
  color: var(--off-white);
  padding: 1.4rem 1.2rem;
  border-top: 3px solid var(--lime);
  position: relative;
}
.flywheel-step h3 { color: var(--off-white); }
.flywheel-step .n { font-family: var(--font-mono); color: var(--lime); font-size: 12px; }
.flywheel-arrow { display: flex; align-items: center; color: var(--lime); font-size: 1.4rem; padding: 0 .2rem; }
.on-light .flywheel-arrow { color: var(--teal); }
@media (max-width: 760px) { .flywheel { flex-direction: column; } .flywheel-arrow { transform: rotate(90deg); align-self: center; } }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(246,246,246,0.1); font-size: 0.92rem; }
.on-light th, .on-light td { border-color: rgba(29,29,29,0.1); }
th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dark-secondary); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark-alt2); padding: 3.5rem 0 2rem; border-top: 1px solid rgba(246,246,246,0.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gutter); margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dark-secondary); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-grid a { color: var(--text-dark-secondary); font-size: .92rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid rgba(246,246,246,0.06); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dark-secondary); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dark-secondary); }
.field input, .field select, .field textarea {
  background: var(--bg-card-dark);
  border: 1px solid rgba(246,246,246,0.14);
  color: var(--off-white);
  padding: 0.85em 1em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); }
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error textarea, .field.error select { border-color: #ff5c5c; }
.field .err-msg { display: none; font-family: var(--font-mono); font-size: 11px; color: #ff8a8a; }
.field.error .err-msg { display: block; }

.form-status { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 13px; display: none; padding: 0.9rem 1.1rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(237,255,0,0.1); color: var(--lime); border: 1px solid rgba(237,255,0,.4); }
.form-status.fail { background: rgba(255,92,92,0.08); color: #ff8a8a; border: 1px solid rgba(255,92,92,.4); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: rgba(246,246,246,0.08); border: none; margin: 3rem 0; }
.on-light .divider { background: rgba(29,29,29,0.08); }

.tag-list { display: flex; gap: .5rem; flex-wrap: wrap; }

.quote {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 780px;
}

.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem;
  width: 44px; height: 44px;
  background: var(--lime); color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .2s;
  z-index: 90;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
