:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #f5f6f8;
  --fg-muted: #9aa0ab;
  --fg-dim: #6b7280;
  --accent: #e8e6df;
  --glow-a: rgba(120, 119, 198, 0.25);
  --glow-b: rgba(255, 154, 108, 0.18);
  --radius: 14px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background atmosphere */
.bg-grid {
  position: fixed; inset: 0;
  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;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.glow-1 { top: -250px; left: -200px; background: var(--glow-a); }
.glow-2 { bottom: -300px; right: -200px; background: var(--glow-b); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 11, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 180deg at 50% 50%, #f5e6c8, #c2bfff, #ffb59a, #f5e6c8);
  box-shadow: 0 0 24px rgba(194, 191, 255, 0.4);
}
.logo-text { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-primary {
  background: var(--fg);
  color: #0a0b0e;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(245, 246, 248, 0.18); }
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.3); }
.arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */
.hero { padding: 120px 0 140px; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #b8bcc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head h2,
.about h2,
.contact h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #c4c8d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Cards */
.card {
  position: relative;
  padding: 36px 32px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.card-num {
  font-size: 12px; font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}
.card-glow {
  position: absolute; top: 0; left: 50%;
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-50%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover .card-glow { opacity: 1; }

/* About */
.about-body { margin-top: 40px; max-width: 720px; }
.about-body p { font-size: 18px; line-height: 1.65; color: var(--fg); margin-bottom: 20px; }
.about-body p.muted { color: var(--fg-muted); font-size: 16px; }

/* Contact */
.contact {
  text-align: center;
  padding: 90px 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at top, rgba(120,119,198,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.contact .eyebrow { margin-bottom: 20px; }
.contact h2 { margin-bottom: 16px; }
.contact .muted { color: var(--fg-muted); margin-bottom: 36px; font-size: 16px; }
.muted { color: var(--fg-muted); }

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer p { color: var(--fg-dim); font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 80px 0 90px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .contact { padding: 60px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* Logo image */
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 36px; width: auto; display: block; filter: drop-shadow(0 0 24px rgba(255,255,255,0.08)); }
.footer .logo-img { height: 28px; opacity: 0.85; }
@media (max-width: 640px) { .logo-img { height: 30px; } }
