/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #0b1120;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0% 0%, #38bdf8, #6366f1);
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.logo-text {
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-dot {
  color: #38bdf8;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.18);
  color: #e5e7eb;
}

/* Buttons */
.btn,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.nav-button {
  background: #38bdf8;
  color: #0b1120;
}

.nav-button:hover {
  background: #0ea5e9;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1120;
  border-color: transparent;
}

.btn.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
}

.btn.ghost:hover {
  border-color: #38bdf8;
  background: rgba(148, 163, 184, 0.12);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 60%);
}

.hero.thin {
  padding: 3rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #f9fafb;
}

.hero-text p {
  color: #e5e7eb;
  line-height: 1.6;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* Hero side panel */
.hero-panel {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.85);
}

.hero-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.checklist {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: #d1d5db;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  color: #22c55e;
}

.panel-link {
  font-size: 0.88rem;
  color: #38bdf8;
  text-decoration: none;
}

.panel-link:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 3rem 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9), #020617);
}

.section-accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(17, 24, 39, 0.98));
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.section-intro {
  max-width: 40rem;
  font-size: 0.95rem;
  color: #cbd5f5;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.section-intro.center {
  text-align: center;
  margin: 2.5rem auto 0;
}

/* Cards & grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.card p {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #38bdf8;
}

.card-link:hover {
  text-decoration: underline;
}

/* Blog cards */
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card .badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
  margin-bottom: 0.6rem;
}

/* CTA section */
.section-accent .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.section-accent h2 {
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

.section-accent p {
  color: #e5e7eb;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  padding: 1.5rem 0;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-inner a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid,
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-accent .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 0.4rem;
  }

  .nav-button {
    display: none; /* Optional: hide big button on very small screens to keep header clean */
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: row;
    gap: 0.75rem;
  }

  .hero {
    padding-top: 3.25rem;
  }
}
