/* AI Accelerator Hub — shared styles */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f3f3f8;
  --surface: #ffffff;
  --text: #14141f;
  --muted: #555869;
  --border: #e4e4ee;
  --accent: #5b4bf5;
  --accent-2: #0f9d8f;
  --accent-text: #ffffff;
  --accent-soft: rgba(91, 75, 245, 0.1);
  --glow-1: rgba(109, 93, 252, 0.28);
  --glow-2: rgba(20, 184, 166, 0.22);
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 8px 24px rgba(20, 20, 40, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --bg-alt: #11111b;
    --surface: #15151f;
    --text: #ececf4;
    --muted: #a3a5b8;
    --border: #262634;
    --accent: #8f84ff;
    --accent-2: #2dd4bf;
    --accent-text: #0b0b12;
    --accent-soft: rgba(143, 132, 255, 0.14);
    --glow-1: rgba(109, 93, 252, 0.32);
    --glow-2: rgba(20, 184, 166, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 750; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2)));
  color: var(--accent-text);
  box-shadow: 0 6px 20px var(--glow-1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--glow-1); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
}
.hero::before { width: 560px; height: 560px; top: -220px; left: 50%; transform: translateX(-80%); background: var(--glow-1); }
.hero::after { width: 480px; height: 480px; top: -120px; left: 50%; transform: translateX(10%); background: var(--glow-2); }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.55;
}
.hero .container { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 24px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.875rem; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { max-width: 880px; margin: 0 auto 20px; }
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 660px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker {
  display: block; margin-bottom: 10px;
  color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.card li { position: relative; padding-left: 22px; margin-top: 6px; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  font-weight: 800; color: var(--accent);
}
.step p { color: var(--muted); margin: 0; }

/* Apps */
.app-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.app-mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.1rem;
}
.app-mark.a1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.app-mark.a2 { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.app-mark.a3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.app-mark.a4 { background: linear-gradient(135deg, #6366f1, #0ea5e9); }
.app-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.app-card p { font-size: 0.95rem; }
.apps-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 64px 32px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 240px at 20% 0%, var(--glow-1), transparent 70%),
    radial-gradient(500px 240px at 80% 100%, var(--glow-2), transparent 70%);
}
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }

/* Page header (inner pages) */
.page-hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 420px; top: -260px; left: -120px;
  border-radius: 50%; filter: blur(70px); background: var(--glow-1);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 360px; top: -220px; right: -120px;
  border-radius: 50%; filter: blur(70px); background: var(--glow-2);
}
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; margin-bottom: 96px; }
.email-big {
  display: inline-block; margin: 8px 0 16px;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; word-break: break-all;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.email-big:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.meta-list { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); }
.meta-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 0.95rem; }
.meta-list strong { color: var(--text); font-weight: 650; min-width: 110px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { color: var(--muted); font-size: 0.875rem; margin: 0; }
.form .btn { justify-self: start; }

/* Prose (privacy) */
.prose { margin-bottom: 96px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose address { font-style: normal; color: var(--muted); margin-bottom: 1em; }
.updated {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.875rem; font-weight: 650;
}

/* 404 */
.notfound { min-height: calc(100vh - 68px - 160px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code {
  font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin-bottom: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer p { margin: 0 0 4px; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .site-header .container { height: 60px; gap: 8px; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav a { padding: 6px 10px; font-size: 0.9rem; }
  .nav .nav-home { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cta { padding: 44px 20px; border-radius: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form .btn, .hero-actions .btn { width: 100%; }
  .page-hero { padding: 48px 0 28px; }
  .meta-list li { flex-direction: column; gap: 0; }
}

/* Fixes */
.card .meta-list li { padding-left: 0; margin-top: 0; }
.card .meta-list li::before { content: none; }
.card .form { margin-top: 20px; }
@media (max-width: 640px) {
  .contact-grid, .prose { margin-bottom: 64px; }
}
