/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #09090b;
  --surface: #111113;
  --border: #1e1e22;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.15rem;
}
.logo-img { height: 32px; width: auto; }
.nav-cta {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.875rem; padding: 0.5rem 1.2rem;
  border: 1px solid var(--border); border-radius: 8px;
  transition: all 0.25s;
}
.nav-cta:hover { color: var(--text); border-color: #3f3f46; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-tag {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-blue); margin-bottom: 1.5rem; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-btn {
  display: inline-block; text-decoration: none;
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  padding: 0.75rem 2rem;
  border: 1px solid var(--border); border-radius: 10px;
  transition: all 0.3s;
}
.hero-btn:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59,130,246,0.15);
}

/* ── Products Section ── */
.products {
  padding: 6rem 2rem 8rem;
  text-align: center;
}
.section-tag {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-purple); margin-bottom: 0.75rem; font-weight: 600;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; max-width: 900px; margin: 0 auto;
}

.card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: left; text-decoration: none; color: var(--text);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #2a2a2e;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.card-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }
.card-glow--blue { background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%); }
.card-glow--purple { background: radial-gradient(circle, rgba(168,85,247,0.12), transparent 70%); }

.card-header { margin-bottom: 1.5rem; }
.card-logo { height: 40px; width: auto; }
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.5rem; }
.card-link {
  font-size: 0.85rem; font-weight: 500;
  color: var(--accent-blue); transition: color 0.25s;
}
.card:nth-child(2) .card-link { color: var(--accent-purple); }
.card:hover .card-link { filter: brightness(1.2); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { height: 28px; margin-bottom: 1rem; opacity: 0.5; }
.footer p { color: var(--text-muted); font-size: 0.8rem; }
.footer-location { margin-top: 0.25rem; }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .products { padding: 4rem 1.5rem 5rem; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 2rem 1.5rem; }
}
