/* ==========================================================================
   NovaStacks — ForgeAI Studio
   Premium software studio site — design system
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #06080f;
  --bg-2: #080b14;
  --surface: #0d1320;
  --surface-2: #121a2c;
  --surface-3: #16203400;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eaeef7;
  --text-muted: #9ba6bc;
  --text-dim: #6b7689;

  /* Brand */
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --accent: #22d3ee;
  --grad: linear-gradient(120deg, #818cf8 0%, #a78bfa 42%, #38bdf8 100%);
  --grad-bright: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 999px;

  /* Shadow / glow */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 12px 50px -12px rgba(99, 102, 241, 0.5);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* page ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 600px at -5% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(800px 700px at 50% 120%, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ----------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------- type */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #c7d0e6;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--pill);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.08rem; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.97rem;
  padding: 0.85rem 1.5rem; border-radius: var(--pill);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-bright); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.85); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 500; color: #cdd6ec; transition: gap 0.2s ease, color 0.2s ease; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover { color: #fff; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; color: #fff; }
.brand svg { width: 30px; height: 30px; }
.brand .brand-sub { font-weight: 400; color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a { font-family: var(--font-display); font-size: 0.92rem; color: var(--text-muted); padding: 0.5rem 0.8rem; border-radius: var(--pill); transition: color 0.2s ease, background 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-inner { max-width: 920px; }
.hero h1 { margin: 1.3rem 0 1.3rem; }
.hero .lead { max-width: 640px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.84rem; color: #cdd6ec; padding: 0.45rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--pill); background: rgba(255, 255, 255, 0.025);
}
.chip svg { width: 14px; height: 14px; color: var(--accent); }

.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: -1; }
.hero-orb.a { width: 420px; height: 420px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(99,102,241,0.6), transparent 70%); }
.hero-orb.b { width: 360px; height: 360px; right: 180px; bottom: -160px; background: radial-gradient(circle, rgba(34,211,238,0.45), transparent 70%); }

/* logo strip / trust */
.marquee-label { text-align: center; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.4rem; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

/* ----------------------------------------------------------------- cards / grids */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card h3 { color: #fff; margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }

.icon-tile {
  width: 48px; height: 48px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.28);
  margin-bottom: 1.1rem;
}
.icon-tile svg { width: 24px; height: 24px; color: #c7d0ff; }

/* service card subtle top accent */
.card--service::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--grad-bright); transition: width 0.3s ease; opacity: 0.9;
}
.card--service:hover::after { width: 100%; }

/* ----------------------------------------------------------------- products */
.product-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; }
.product-top { display: flex; align-items: center; gap: 0.9rem; }
.product-logo {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff;
  border: 1px solid var(--border-strong);
}
.product-meta h3 { margin: 0; font-size: 1.22rem; }
.product-meta .tagline { font-size: 0.88rem; color: var(--accent); font-family: var(--font-display); }
.product-card p { font-size: 0.95rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tag { font-size: 0.76rem; color: #b9c2d8; padding: 0.32rem 0.7rem; border-radius: var(--pill); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); }
.badge-soft { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a8b2ff; }

/* mobile apps */
.app-card { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.7rem; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.app-icon svg { width: 34px; height: 34px; }
.app-body h3 { margin-bottom: 0.35rem; }
.app-body .tagline { color: var(--accent); font-family: var(--font-display); font-size: 0.85rem; margin-bottom: 0.5rem; }
.platform-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }

/* ----------------------------------------------------------------- custom software */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.mini { padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s ease, background 0.2s ease; }
.mini:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.mini h4 { font-size: 1rem; color: #fff; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.mini h4 svg { width: 16px; height: 16px; color: var(--accent); }
.mini p { font-size: 0.88rem; }

/* split feature layout */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.panel {
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-lg);
}

/* ----------------------------------------------------------------- industries */
.industry-group h3 { font-size: 1.05rem; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.6rem; }
.industry-group .grp-sub { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.industry-tags span { font-size: 0.85rem; color: #d4dcef; padding: 0.45rem 0.85rem; border: 1px solid var(--border); border-radius: var(--pill); background: rgba(255, 255, 255, 0.02); transition: 0.2s; }
.industry-tags span:hover { border-color: rgba(129,140,248,0.4); color: #fff; }
.grp-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(99,102,241,0.16); border: 1px solid rgba(129,140,248,0.25); }
.grp-ico svg { width: 18px; height: 18px; color: #c7d0ff; }

/* ----------------------------------------------------------------- process */
.process-list { display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.4rem 1.5rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(255,255,255,0.02); transition: 0.25s; }
.step:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(34,211,238,0.2)); border: 1px solid rgba(129,140,248,0.3); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.92rem; }

/* ----------------------------------------------------------------- why */
.why-card { padding: 1.5rem; }
.why-card .why-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); margin-bottom: 1rem; }
.why-card .why-ico svg { width: 22px; height: 22px; color: var(--accent); }

/* ----------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: 0.7rem; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: rgba(255,255,255,0.02); overflow: hidden; transition: border-color 0.2s ease; }
.faq-item[open] { border-color: var(--border-strong); background: rgba(255,255,255,0.035); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: #fff; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .faq-ico { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: 0.25s; }
.faq-q .faq-ico::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq-q .faq-ico::after { top: 3px; left: 10px; width: 2px; height: 16px; }
.faq-item[open] .faq-q .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 1.3rem 1.2rem; }
.faq-a p { font-size: 0.96rem; }

/* ----------------------------------------------------------------- CTA banner */
.cta-banner {
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(99,102,241,0.22), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(34,211,238,0.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  text-align: center;
}
.cta-banner h2 { margin-bottom: 0.9rem; }
.cta-banner p { max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.06rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ----------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.email-pill { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding: 0.7rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--pill); color: #fff; font-family: var(--font-display); background: rgba(255,255,255,0.03); transition: 0.2s; }
.email-pill:hover { border-color: rgba(129,140,248,0.5); background: rgba(255,255,255,0.06); }
.email-pill svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.contact-points { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.contact-points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.contact-points svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

.form-card { padding: clamp(1.5rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-family: var(--font-display); color: #cdd6ec; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: var(--text);
  font-size: 0.95rem; transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(129, 140, 248, 0.6); background: rgba(255, 255, 255, 0.05); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ba6bc' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field select option { background: #0d1320; color: var(--text); }
.form-note { font-size: 0.84rem; color: var(--text-dim); margin-top: 0.9rem; text-align: center; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.form-status.error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; color: var(--text-dim); margin-bottom: 1rem; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.consent a { color: #b9c2d8; text-decoration: underline; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 2rem; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; padding: 1.5rem 0; margin-top: 0.5rem; border-bottom: 1px solid var(--border); }
.footer-legal-links a, .footer-legal-links span { font-size: 0.8rem; color: var(--text-dim); transition: color 0.2s ease; }
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links span[aria-current] { color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; }
.footer-legal .company-line { font-size: 0.84rem; color: var(--text-dim); max-width: 640px; line-height: 1.7; }
.footer-legal .company-line strong { color: var(--text-muted); font-weight: 600; }
.footer-copy { font-size: 0.84rem; color: var(--text-dim); }

/* ----------------------------------------------------------------- portfolio: browser + phone frames */
.browser-frame { border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; background: #0b1120; box-shadow: var(--shadow-lg); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.browser-frame:hover { transform: translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--border); }
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.browser-url { flex: 1; margin-left: 6px; font-size: 0.72rem; color: var(--text-dim); background: rgba(255, 255, 255, 0.05); border-radius: 6px; padding: 4px 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); }
.browser-frame > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }

.phone-frame { width: clamp(180px, 22vw, 230px); flex: none; border-radius: 30px; border: 9px solid #0f1521; background: #0f1521; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; transition: transform 0.3s ease; }
.phone-frame:hover { transform: translateY(-4px); }
.phone-frame::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 78px; height: 16px; background: #0f1521; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-frame > img { display: block; width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top center; }

/* showcase rows (SaaS products) */
.showcase { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.showcase-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.showcase-row.reverse .showcase-media { order: 2; }
.product-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.9rem; }
.product-head .product-logo { width: 46px; height: 46px; border-radius: 12px; font-size: 1.15rem; overflow: hidden; }
.product-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.showcase-media { position: relative; }
.product-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.product-head .cat { display: block; font-family: var(--font-display); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.02em; }
.showcase-body .tagline { font-size: 1.1rem; color: #eef1f8; font-family: var(--font-display); margin-bottom: 0.8rem; }
.showcase-body > p { font-size: 0.98rem; margin-bottom: 1.1rem; }
.bullet-list { display: grid; gap: 0.5rem; margin-bottom: 1.4rem; }
.bullet-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; color: var(--text-muted); }
.bullet-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* mobile app showcase cards */
.app-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.app-show-card { display: flex; gap: clamp(1.2rem, 2.5vw, 2rem); align-items: center; padding: clamp(1.4rem, 2.5vw, 2rem); }
.app-show-body { min-width: 0; }
.app-show-body .product-head .product-logo { border-radius: 13px; }
.app-show-body .tagline { color: var(--accent); font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 0.6rem; }
.app-show-body p { font-size: 0.93rem; margin-bottom: 1rem; }

/* product page hero + gallery */
.product-hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.product-hero .product-head .product-logo { width: 56px; height: 56px; border-radius: 15px; font-size: 1.4rem; }
.product-hero .product-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.product-hero-media { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.gallery .browser-frame > img { aspect-ratio: 16 / 10; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.mobile-gallery { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.4rem; }

/* ----------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }

/* page hero for legal pages */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
.page-hero .updated { font-size: 0.9rem; color: var(--text-dim); }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: #fff; }

/* legal / prose */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); margin: 2.4rem 0 0.9rem; color: #fff; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; color: #eef1f8; }
.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; display: grid; gap: 0.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--text-muted); padding-left: 0.3rem; }
.prose li::marker { color: var(--brand); }
.prose a { color: #a8b2ff; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #fff; }
.prose strong { color: #eef1f8; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.85rem; border: 1px solid var(--border); }
.prose th { background: rgba(255,255,255,0.04); color: #eef1f8; font-family: var(--font-display); font-weight: 500; }
.prose td { color: var(--text-muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose blockquote { border-left: 3px solid var(--brand); padding-left: 1rem; margin: 1.2rem 0; color: var(--text-muted); }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .showcase-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .app-showcase { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu .nav-links { display: flex; }

  .mobile-menu {
    display: block;
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    background: rgba(8, 11, 20, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem var(--gutter) 1.6rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s;
  }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu .nav-links { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .mobile-menu .nav-links a { padding: 0.85rem 1rem; font-size: 1rem; }
  .mobile-menu .btn { display: inline-flex; width: 100%; margin-top: 0.8rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .app-card { flex-direction: column; }
  .app-show-card { flex-direction: column; align-items: flex-start; }
  .product-hero .product-actions .btn { width: 100%; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
