/* Tera marketing site — self-contained (no CDN), the Tera Shield design language.
   Palette: indigo #4338ca / #312e81 / deep #1e1b4b, violet #8b5cf6, sky #38bdf8, slate neutrals. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; }
h1 em, h2 em { font-style: normal; background: linear-gradient(90deg, #818cf8, #c4b5fd, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip h2 em { background: linear-gradient(90deg, #4f46e5, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #4f46e5; margin: 0 0 14px; }
.eyebrow.light { color: #a5b4fc; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #475569; max-width: 34em; }
.lede.light { color: #c7d2fe; margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5 60%, #4338ca); color: #fff; box-shadow: 0 12px 30px rgba(67, 56, 202, 0.35); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(67, 56, 202, 0.45); }
.btn-ghost { color: #e0e7ff; border: 1.5px solid rgba(224, 231, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-light { background: #ffffff; color: #312e81; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.btn-outline { color: #ffffff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Nav ── */
nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: background 200ms ease, box-shadow 200ms ease; }
nav.scrolled { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
nav.scrolled .brand { color: #1e1b4b; }
.brand-shield { width: 30px; height: 30px; }
.brand.small { color: #fff; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #e0e7ff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav.scrolled .nav-links a { color: #334155; }
.nav-links a.btn-primary, nav.scrolled .nav-links a.btn-primary { color: #fff; }
#nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
#nav-burger span { display: block; width: 22px; height: 2px; background: #e0e7ff; margin: 5px 0; border-radius: 2px; transition: background 200ms; }
nav.scrolled #nav-burger span { background: #1e1b4b; }

/* ── Hero ── */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55rem 55rem at -8% -12%, rgba(129, 140, 248, 0.42), rgba(129, 140, 248, 0) 62%),
    radial-gradient(45rem 45rem at 108% 112%, rgba(168, 85, 247, 0.30), rgba(168, 85, 247, 0) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #4338ca 0%, #312e81 52%, #1e1b4b 130%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero .eyebrow { color: #c7d2fe; }
.hero .lede { color: rgba(255, 255, 255, 0.85); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.cta-row.center { justify-content: center; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.badges li { font-size: 0.82rem; font-weight: 600; color: #e0e7ff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); padding: 7px 14px; border-radius: 999px; }

/* ── Browser frame ── */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px rgba(10, 8, 48, 0.45), 0 4px 16px rgba(10, 8, 48, 0.2); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2f7; border-bottom: 1px solid #e2e8f0; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar i:nth-child(1) { background: #fda4af; } .browser-bar i:nth-child(2) { background: #fcd34d; } .browser-bar i:nth-child(3) { background: #86efac; }
.browser-bar span { margin-left: 10px; font-size: 0.75rem; color: #64748b; background: #fff; border-radius: 6px; padding: 3px 12px; }
.hero-shot .browser { transform: rotate(1.2deg); }
.hero-shot img { max-height: 520px; object-fit: cover; object-position: top; width: 100%; }

/* ── Strip ── */
.strip { padding: 96px 0; background: #f8fafc; }
.strip-inner { max-width: 780px; text-align: center; }
.strip p { color: #475569; font-size: 1.1rem; }

/* ── Platform features ── */
.platform { padding: 100px 0 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 54px; align-items: center; margin: 90px 0; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }
.feature-copy p { color: #475569; }
.feature-copy ul { padding-left: 0; list-style: none; color: #334155; }
.feature-copy li { padding: 5px 0 5px 30px; position: relative; font-weight: 500; }
.feature-copy li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #38bdf8); mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5L4 14.2 9 19 20 8l-1.4-1.4z"/></svg>') center / contain no-repeat; }
.feature-shot .browser { box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08); }
.feature-shot img { max-height: 460px; object-fit: cover; object-position: top; width: 100%; }

.portal-strip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 54px; align-items: center;
  background: linear-gradient(160deg, #eef2ff, #f5f3ff); border-radius: 28px; padding: 56px; margin: 90px 0; }
.portal-strip p { color: #475569; }

/* ── Security ── */
.security { position: relative; padding: 110px 0; color: #fff; overflow: hidden;
  background:
    radial-gradient(50rem 50rem at 110% -10%, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 44px),
    linear-gradient(165deg, #1e1b4b 0%, #171532 60%, #0f0e24 130%); }
.security h2.light, .security .lede.light { color: #fff; }
.security .lede.light { color: #c7d2fe; }
.security-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 54px; align-items: center; margin-top: 60px; }
.security-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scard { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 22px; }
.scard h4 { margin: 0 0 8px; font-size: 1rem; color: #e0e7ff; }
.scard p { margin: 0; font-size: 0.9rem; color: #a5b4fc; }
.scard strong { color: #7dd3fc; }
.security-shot img { border-radius: 20px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.security-shot figcaption { text-align: center; font-size: 0.85rem; color: #818cf8; margin-top: 14px; }

/* ── Why ── */
.why { padding: 110px 0; background: #f8fafc; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.wcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); }
.wcard h4 { margin: 0 0 10px; font-size: 1.1rem; }
.wcard p { margin: 0; color: #475569; }

/* ── CTA band ── */
.cta-band { padding: 110px 0; color: #fff; text-align: center;
  background:
    radial-gradient(45rem 30rem at 50% 120%, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0) 60%),
    linear-gradient(160deg, #4338ca 0%, #312e81 60%, #1e1b4b 140%); }
.cta-inner p { color: #c7d2fe; max-width: 40em; margin: 0 auto 30px; }

/* ── Footer ── */
footer { background: #0f0e24; color: #a5b4fc; padding: 56px 0; }
.foot-inner { display: grid; gap: 14px; }
footer p { margin: 0; max-width: 46em; }
.fineprint { font-size: 0.82rem; color: #6366a8; }
.fineprint a { color: #818cf8; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ── */
@media (max-width: 940px) {
  .hero-inner, .feature, .feature.flip, .security-grid, .portal-strip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 1; } .feature.flip .feature-shot { order: 2; }
  .hero { padding-top: 120px; }
  .hero-shot .browser { transform: none; }
  .security-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .portal-strip { padding: 34px; }
  .feature { margin: 64px 0; }
  #nav-burger { display: block; }
  .nav-links { position: fixed; top: 62px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; text-align: center;
    background: #ffffff; border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { color: #1e293b !important; padding: 8px 0; }
  .nav-links a.btn-primary { color: #fff !important; }
}
