/* ============================================================
   Orietech — design tokens
   Light theme. Green primary. Inter system stack.
   ============================================================ */

:root {
  /* Brand greens */
  --brand-50:  #e8f7ee;
  --brand-100: #cdebd8;
  --brand-200: #9bd7b1;
  --brand-300: #67c189;
  --brand-400: #34c77f;
  --brand-500: #0d9d58;   /* primary */
  --brand-600: #0a7e46;
  --brand-700: #064a31;
  --brand-800: #053a26;
  --brand-900: #022116;

  /* Neutrals */
  --ink:       #0e1714;
  --text:      #1a2520;
  --text-mid:  #36433d;
  --text-mute: #6b7c73;
  --line:      #dde6e0;
  --line-soft: #ecf2ee;
  --surface:   #ffffff;
  --surface-2: #f6faf7;
  --surface-3: #eef4f0;

  /* Accents */
  --warn:    #b97a14;
  --danger:  #c1392b;
  --info:    #155f8d;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(6, 74, 49, 0.06);
  --shadow:    0 6px 18px -8px rgba(6, 74, 49, 0.18);
  --shadow-lg: 0 26px 60px -28px rgba(6, 74, 49, 0.30);
  --radius:    12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  /* Layout */
  --maxw: 1180px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1em; color: var(--text-mid); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Top bar / nav
   ============================================================ */
.topbar {
  background: var(--brand-700);
  color: #d6efdf;
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: #d6efdf; }
.topbar .tb-right { display: flex; gap: 18px; }
.topbar .tb-right a:hover { color: #fff; }

.nav-wrap {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--brand-600); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(13, 157, 88, 0.55);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(13, 157, 88, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-outline {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand-300); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(52, 199, 127, 0.22), transparent 60%),
    radial-gradient(900px 480px at 96% 10%, rgba(13, 157, 88, 0.18), transparent 60%),
    linear-gradient(180deg, #f3f9f5 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--brand-100);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--brand-500);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(13, 157, 88, 0.18);
}
.hero h1 { margin-bottom: 20px; }
.hero .lede {
  font-size: 1.12rem;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--brand-500); }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 380px;
}
.hero-art .terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hero-art .terminal-bar span {
  width: 11px; height: 11px;
  background: #d6e0db;
  border-radius: 999px;
}
.hero-art .terminal-bar span:first-child { background: #f47171; }
.hero-art .terminal-bar span:nth-child(2) { background: #f5b945; }
.hero-art .terminal-bar span:nth-child(3) { background: var(--brand-400); }
.hero-art .term-body {
  padding: 22px 24px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text);
}
.hero-art .prompt { color: var(--brand-600); }
.hero-art .muted { color: var(--text-mute); }
.hero-art .ok    { color: var(--brand-500); }

/* ============================================================
   Section primitives
   ============================================================ */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section.alt { background: var(--surface-2); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--text-mute); margin: 0; }

/* ============================================================
   Logo strip
   ============================================================ */
.logo-strip {
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.logo-strip .label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.logo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 44px;
  opacity: 0.7;
}
.logo-row .logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-mute);
}

/* ============================================================
   Feature grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.feature:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.94rem; color: var(--text-mute); }

/* ============================================================
   Plan cards (pricing)
   ============================================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.plan:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}
.plan.featured {
  border-color: var(--brand-500);
  border-width: 2px;
  box-shadow: 0 24px 60px -28px rgba(13, 157, 88, 0.35);
  transform: scale(1.02);
}
.plan-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-name { font-size: 0.92rem; font-weight: 600; color: var(--brand-700); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.plan-desc { font-size: 0.92rem; color: var(--text-mute); min-height: 42px; margin-bottom: 18px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.plan-price .amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }
.plan-price .ccy { font-size: 1rem; color: var(--text-mute); font-weight: 600; }
.plan-price .per { font-size: 0.88rem; color: var(--text-mute); }
.plan-meta { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 22px; }
.plan-meta del { color: var(--text-mute); margin-right: 6px; }
.plan-cta { margin-bottom: 22px; }
.plan-features {
  list-style: none;
  padding: 0; margin: 0;
  flex: 1;
  font-size: 0.92rem;
}
.plan-features li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-mid);
  border-top: 1px solid var(--line-soft);
}
.plan-features li:first-child { border-top: 0; padding-top: 0; }
.plan-features svg {
  flex-shrink: 0;
  color: var(--brand-500);
  margin-top: 2px;
}
.plan-features li.muted { color: var(--text-mute); }
.plan-features li.muted svg { color: var(--text-mute); opacity: 0.6; }

/* ============================================================
   Split / use case row
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 14px; }
.split-points { list-style: none; padding: 0; margin: 22px 0 0; }
.split-points li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-mid);
}
.split-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--brand-100);
  border: 3px solid var(--brand-500);
}
.split-art {
  background: linear-gradient(160deg, var(--brand-50) 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 320px;
  position: relative;
}

/* ============================================================
   Stats / trust band
   ============================================================ */
.stats-band {
  background: var(--brand-700);
  color: #e6f5ec;
  padding: 56px 0;
}
.stats-band h2 { color: #fff; text-align: center; margin-bottom: 36px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.stats .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  display: block;
  margin-bottom: 6px;
}
.stats .lbl { font-size: 0.92rem; color: #b7dcc4; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-500);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 0 22px;
  color: var(--text-mid);
  font-size: 0.96rem;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-band {
  background:
    radial-gradient(700px 240px at 10% 30%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfeada; margin: 0; max-width: 520px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-700);
  border: 1px solid #fff;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.3);
}
.cta-band .btn-primary:hover { background: var(--brand-50); color: var(--brand-800); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #0a1f15;
  color: #b7c8be;
  padding: 64px 0 28px;
}
.footer a { color: #b7c8be; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-blurb { font-size: 0.92rem; max-width: 280px; color: #94a89e; }
.footer h4 {
  color: #fff;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid #1a3a2a;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #7c918a;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-legal {
  border-top: 1px solid #1a3a2a;
  padding-top: 22px;
  margin: 0 0 18px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #7c918a;
  max-width: 760px;
}
.footer-legal + .footer-bottom { border-top: 0; padding-top: 0; }

/* ============================================================
   Auth pages (login / signup / reset)
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(800px 320px at 50% -10%, rgba(13, 157, 88, 0.12), transparent 60%),
    var(--surface-2);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--text-mute);
  font-size: 0.94rem;
  margin-bottom: 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: 0;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(13, 157, 88, 0.14);
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  margin: 6px 0 22px;
}
.auth-row label { color: var(--text-mute); display: inline-flex; gap: 6px; align-items: center; }
.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.flash {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.flash.err { background: #fdecea; color: #9b2c1f; border: 1px solid #f5c6c0; }
.flash.ok  { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .stats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-band { padding: 32px 28px; }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
  .topbar .tb-right { gap: 12px; font-size: 0.78rem; }
  .topbar .tb-left { display: none; }
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
