/* Brand colors — from terafort.org logo (#FE9901 orange + white) */
:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --card: #191714;
  --line: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: #aaa49c;
  --primary: #fe9901;
  --accent: #ffb547;
  --grad: linear-gradient(100deg, #ff7a00, var(--primary) 50%, var(--accent));
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { color: #111 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--primary); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text) !important; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(12,11,10,.8); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 80%; background: radial-gradient(40% 50% at 30% 40%, rgba(254,153,1,.32), transparent 70%), radial-gradient(35% 45% at 75% 30%, rgba(255,122,0,.18), transparent 70%); filter: blur(20px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.05); } }
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero h1 { font-size: clamp(48px, 9vw, 112px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 560px; }
.hero-cta { width: 100%; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.hero-apps { display: flex; gap: 18px; margin-top: 40px; }
.hero-apps img { width: clamp(56px, 9vw, 88px); aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 12px 40px -10px rgba(0,0,0,.7); border: 1px solid var(--line); animation: float 5s ease-in-out infinite; }
.hero-apps img:nth-child(2) { animation-delay: -1.2s; }
.hero-apps img:nth-child(3) { animation-delay: -2.4s; }
.hero-apps img:nth-child(4) { animation-delay: -3.6s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* About */
.about { max-width: 980px; }
.statement { font-size: clamp(24px, 3.4vw, 40px); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }

/* Upcoming */
.upcoming { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.up-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; transition: transform .3s, border-color .3s; }
.up-card:hover { transform: translateY(-6px); border-color: rgba(254,153,1,.55); }
.up-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; }
.tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(254,153,1,.14); color: #ffc266; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.project:hover { transform: translateY(-6px); border-color: rgba(254,153,1,.5); }
.project-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project-media img { transform: scale(1.05); }
.project-body { padding: 24px; display: grid; gap: 12px; }
.project-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.project-meta img { width: 32px; height: 32px; border-radius: 9px; }
.project-body p { color: var(--muted); font-size: 15px; }

/* Platforms */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 500 14px var(--font-body); cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.logo-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px; display: grid; justify-items: center; gap: 14px; font-weight: 500; transition: border-color .3s; }
.logo-tile:hover { border-color: rgba(255,255,255,.25); }
.logo-tile img { height: 48px; width: auto; object-fit: contain; }
.panel-empty { color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.award { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.award img { height: 64px; width: auto; object-fit: contain; justify-self: start; }
.award h3 { font-size: 17px; }
.award p { color: var(--muted); font-size: 14.5px; }

/* Numbers */
.numbers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: radial-gradient(80% 120% at 0% 0%, rgba(254,153,1,.2), transparent 60%), var(--card); border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.stat { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.stat strong { font: 700 clamp(36px, 5vw, 56px)/1 var(--font-head); letter-spacing: -0.03em; }
.stat .stat-text { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.stat > span { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); font: 16px var(--font-body); resize: vertical; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form .btn { justify-self: start; }
.form-note { color: var(--accent); font-size: 14px; min-height: 1em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand p, .footer-bottom { color: var(--muted); font-size: 14px; }
.footer-links, .socials { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; align-items: center; }
.socials a { color: var(--muted); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .hero-apps img { animation: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: rgba(12,11,10,.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
  .nav.open { background: rgba(12,11,10,.97); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .numbers, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-row, .stats { grid-template-columns: 1fr; }
  .hero-apps { gap: 12px; }
}

/* Rich motion */
.hero h1 .grad { background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); pointer-events: none; }
.hero-glow { transition: translate .4s ease-out; }
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(254,153,1,.14), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 1; }
.spot:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.marquee { overflow: hidden; margin-top: 56px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; font: 600 clamp(28px, 4vw, 48px) var(--font-head); color: rgba(255,255,255,.12); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--primary); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
@media (prefers-reduced-motion: reduce) { .marquee-track, .hero h1 .grad { animation: none; } }
img.img-fallback { background: repeating-linear-gradient(135deg, #1f1c18 0 8px, #262220 8px 16px); object-fit: cover; }

/* Privacy policy page */
.policy-hero { padding: 150px 0 40px; position: relative; overflow: hidden; }
.policy-hero .hero-glow { height: 120%; opacity: .7; }
.policy-hero .wrap { position: relative; display: grid; gap: 16px; }
.policy-hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -0.03em; }
.updated { display: inline-block; width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; color: var(--muted); }
.glance { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.glance li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: 15px; }
.glance strong { display: block; font-family: var(--font-head); color: var(--text); margin-bottom: 2px; }
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; }
.toc h2 { font-size: 15px; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.policy { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 52px); max-width: 820px; }
.policy section { padding: 32px 0; border-top: 1px solid var(--line); }
.policy section:first-child { border-top: 0; padding-top: 0; }
.policy section:last-child { padding-bottom: 0; }
.policy h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.policy h2 .n { color: var(--primary); margin-right: 10px; }
.policy h3 { margin: 22px 0 8px; }
.policy p, .policy li { color: #d6d1ca; max-width: 68ch; }
.policy p { margin-bottom: 14px; }
.policy ul { padding-left: 1.2rem; margin: 0 0 14px; }
.policy li { margin-bottom: 8px; }
.policy li::marker { color: var(--primary); }
.policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.callout { border-left: 4px solid var(--primary); background: rgba(254,153,1,.08); border-radius: 12px; padding: 14px 18px; margin: 16px 0; max-width: 68ch; }
.callout p { margin: 0; color: var(--text); }
.contact-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-box a { font-family: var(--font-head); font-weight: 600; font-size: 18px; text-decoration: none; }
@media (max-width: 960px) {
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
  .toc h2 { display: none; }
  .toc summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 14px 0; }
  .toc-desktop { display: none; }
}
@media (min-width: 961px) { .toc-mobile { display: none; } }
