/* SYNKRIS AI — SHARED DESIGN SYSTEM */

:root {
  --bg: #07070C;
  --bg-2: #0C0C14;
  --surface: #12121E;
  --surface-2: #181826;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F5FA;
  --text-2: #B4B4C7;
  --text-3: #6E6E85;

  --accent: #4F7CFF;
  --accent-2: #00E5FF;
  --accent-3: #00FFA3;
  --accent-glow: rgba(79, 124, 255, 0.5);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="electric"] {
  --bg: #07070C; --bg-2: #0C0C14; --surface: #12121E; --surface-2: #181826;
  --accent: #4F7CFF; --accent-2: #00E5FF; --accent-3: #B5F838;
  --accent-glow: rgba(79, 124, 255, 0.5);
}
[data-theme="acid"] {
  --bg: #050805; --bg-2: #0A0F0A; --surface: #0F1410; --surface-2: #141A14;
  --accent: #B5F838; --accent-2: #38F8C9; --accent-3: #F8E838;
  --accent-glow: rgba(181, 248, 56, 0.5);
}
[data-theme="solar"] {
  --bg: #0F0805; --bg-2: #15090A; --surface: #1A0E0B; --surface-2: #221311;
  --accent: #FF6B35; --accent-2: #FFD23F; --accent-3: #FF3D7F;
  --accent-glow: rgba(255, 107, 53, 0.5);
}
[data-theme="oceanic"] {
  --bg: #050A14; --bg-2: #081020; --surface: #0C1628; --surface-2: #121E34;
  --accent: #00D4FF; --accent-2: #5EEAD4; --accent-3: #C084FC;
  --accent-glow: rgba(0, 212, 255, 0.5);
}
[data-theme="rose"] {
  --bg: #0E0508; --bg-2: #15080C; --surface: #1A0B11; --surface-2: #221016;
  --accent: #FF4D7E; --accent-2: #FFB854; --accent-3: #C77DFF;
  --accent-glow: rgba(255, 77, 126, 0.5);
}

:root, [data-theme] {
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --gradient-soft: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent));
  --gradient-glow: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
}

[data-font="grotesk"]  { --font-display: 'Space Grotesk', sans-serif; --font-body: 'Inter', sans-serif; }
[data-font="serif"]    { --font-display: 'Instrument Serif', serif; --font-body: 'Inter', sans-serif; }
[data-font="mono"]     { --font-display: 'JetBrains Mono', monospace; --font-body: 'JetBrains Mono', monospace; }
[data-font="editorial"]{ --font-display: 'Fraunces', serif; --font-body: 'Inter', sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent); color: var(--bg); }

html {
  scrollbar-gutter: stable;
}
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { overflow-x: clip; }
body { position: relative; min-height: 100vh; }

.dotted-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

body.grid-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
body.grid-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 65%, var(--accent-glow), transparent 70%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* Ambient multi-color corner glow — all pages */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 2% 4%,  color-mix(in srgb, var(--accent)   6%, transparent), transparent 65%),
    radial-gradient(ellipse 42% 36% at 98% 6%,  color-mix(in srgb, var(--accent-2) 5%, transparent), transparent 65%),
    radial-gradient(ellipse 36% 48% at 96% 96%, color-mix(in srgb, var(--accent-3) 4%, transparent), transparent 65%),
    radial-gradient(ellipse 48% 36% at 3%  97%, color-mix(in srgb, var(--accent-2) 5%, transparent), transparent 65%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }


/* NAV */
@keyframes navIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); z-index: 100;
  background: rgba(12, 12, 20, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 12px 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: navIn 0.15s ease;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
  color: var(--bg);
}
.nav-logo-mark svg { width: 16px; height: 16px; }
.nav-logo-img {
  display: block; height: 19px; width: 126px;
  /* invert flips white→black; contrast crushes gray bg to true black;
     hue-rotate restores original colours; screen blend hides black on dark bg */
  filter: invert(1) contrast(2) hue-rotate(180deg) brightness(1.15);
  mix-blend-mode: screen;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 16px; font-size: 14px; color: var(--text-2);
  border-radius: 100px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav-cta {
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  background: var(--accent); border-radius: 100px; color: var(--bg);
  transition: all 0.2s; box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-cta:hover { transform: translateY(-1px); }
/* hamburger shown at 720px; .nav-links toggled via overlay instead */

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto; position: relative; z-index: 1;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  padding: 6px 12px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); border-radius: 100px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.h-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.h-section { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 500;
  border-radius: 100px; transition: all 0.2s; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }

.reveal { opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { margin: 16px 0; }
.section-head p { font-size: 18px; color: var(--text-2); line-height: 1.55; text-wrap: pretty; }

.cta-banner {
  position: relative; margin: 80px auto; padding: 80px 48px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent));
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  text-align: center; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: var(--gradient-glow); opacity: 0.5; pointer-events: none; }
.cta-banner-content { position: relative; }
.cta-banner h2 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; margin: 16px auto; max-width: 16ch;
}
.cta-banner p { font-size: 18px; color: var(--text-2); max-width: 540px; margin: 0 auto 32px; line-height: 1.55; }

/* FOOTER */
.footer-modern {
  position: relative; z-index: 1;
  margin-top: 80px; padding: 0;
  overflow: hidden; border-top: 1px solid var(--border);
}
.footer-cta {
  position: relative;
  padding: 80px 48px 100px; text-align: center;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.footer-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.6; pointer-events: none;
}
.footer-cta-content { position: relative; z-index: 2; }
.footer-cta h2 {
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
  margin: 24px auto 24px; max-width: 14ch;
}
.footer-cta p { font-size: 18px; color: var(--text-2); max-width: 480px; margin: 0 auto 32px; line-height: 1.55; }

.footer-mega {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 20vw, 280px);
  letter-spacing: -0.06em; line-height: 0.85; text-align: center;
  background: linear-gradient(180deg, var(--text) 0%, transparent 95%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 80px 0 0; user-select: none;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 64px 0 48px; align-items: start;
}
.footer-brand-col p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 240px; }
.footer-col { text-align: right; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-col a {
  font-size: 14px; color: var(--text-2); transition: color 0.15s; display: inline-block;
}
.footer-col a:hover { color: var(--accent); }
.footer-status { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.footer-status-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; color: var(--text-2);
}
.footer-status-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 1.5s ease-in-out infinite;
}
.footer-bottom {
  padding: 32px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 16px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); transition: all 0.2s;
}
.footer-socials a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); }
.footer-socials svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-status { margin-top: 20px; flex-direction: row; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ═══════════════ MOBILE / RESPONSIVE ═══════════════ */

/* Hamburger button */
.nav-menu-btn {
  display: none; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); flex-shrink: 0; transition: all 0.2s;
}
.nav-menu-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.nav-menu-btn svg { width: 18px; height: 18px; pointer-events: none; }

/* Mobile nav overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(7,7,12,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 80px 32px 48px;
}
.nav-mobile.open { display: flex; }
.nav-mobile-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; transition: all 0.2s;
}
.nav-mobile-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.nav-mobile-close svg { width: 18px; height: 18px; }
.nav-mobile a:not(.nav-mobile-cta) {
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; color: var(--text-2); padding: 10px 24px;
  border-radius: 12px; transition: color 0.2s; width: 100%; text-align: center;
}
.nav-mobile a:not(.nav-mobile-cta):hover,
.nav-mobile a:not(.nav-mobile-cta).active { color: var(--accent); }
.nav-mobile-cta {
  margin-top: 20px; padding: 14px 36px; font-size: 16px; font-weight: 500;
  background: var(--accent); border-radius: 100px; color: var(--bg);
  box-shadow: 0 8px 24px var(--accent-glow);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .nav { padding: 8px 10px 8px 18px; }
}

/* Section base padding */
@media (max-width: 720px) {
  section { padding: 72px 0; }
  .container { width: calc(100% - 32px); }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .cta-banner { padding: 48px 24px; margin: 40px auto; }
  .cta-banner p { font-size: 16px; }
  .cta-banner h2 { font-size: clamp(28px, 7vw, 48px); }
}
@media (max-width: 480px) {
  section { padding: 56px 0; }
}

/* Footer mobile */
@media (max-width: 720px) {
  .footer-cta { padding: 56px 20px 68px; }
  .footer-cta h2 { font-size: clamp(38px, 12vw, 64px); }
  .footer-cta p { font-size: 16px; }
  .footer-mega { font-size: clamp(60px, 20vw, 160px); margin: 36px 0 0; letter-spacing: -0.05em; }
  .footer-grid { padding: 44px 0 32px; }
  .footer-col { text-align: left; }
  .footer-col ul { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .footer-mega { font-size: clamp(48px, 17vw, 96px); }
}
