/* Reset & basics */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Linear-like deep background */
  --bg-0: #0a0c10;
  --bg-1: #0f1117;
  --bg-2: #090d14;

  /* Text */
  --text-0: #f8fafc;
  --text-muted: #a3b1c2;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);

  /* Linear gradient accent */
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #d946ef;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);

  /* Panels */
  --panel-bg: rgba(18, 23, 38, 0.78);
  --panel-bg-strong: rgba(11, 16, 30, 0.9);

  /* Shadows & radius */
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.75);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, var(--bg-1) 0%, var(--bg-0) 60%, var(--bg-2) 100%);
  color: var(--text-0);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* CSS starfield */
#stars,
#stars2,
#stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background: transparent;
  z-index: -2;
}

#stars {
  box-shadow:
    300px 500px #e5e7eb,
    900px 120px #e5e7eb,
    1200px 700px #e5e7eb,
    1600px 400px #e5e7eb,
    400px 900px #e5e7eb,
    700px 1300px #e5e7eb,
    1100px 1500px #e5e7eb,
    1500px 1800px #e5e7eb;
  animation: animStar 60s linear infinite;
}
#stars::after {
  content: "";
  position: absolute;
  top: 2000px;
  width: 1px;
  height: 1px;
  box-shadow:
    300px 500px #e5e7eb,
    900px 120px #e5e7eb,
    1200px 700px #e5e7eb,
    1600px 400px #e5e7eb,
    400px 900px #e5e7eb,
    700px 1300px #e5e7eb,
    1100px 1500px #e5e7eb,
    1500px 1800px #e5e7eb;
}

#stars2 {
  width: 2px;
  height: 2px;
  box-shadow:
    200px 300px #c7d2fe,
    800px 800px #c7d2fe,
    1400px 600px #c7d2fe,
    600px 1400px #c7d2fe,
    1200px 1200px #c7d2fe;
  animation: animStar 100s linear infinite;
}
#stars2::after {
  content: "";
  position: absolute;
  top: 2000px;
  width: 2px;
  height: 2px;
  box-shadow:
    200px 300px #c7d2fe,
    800px 800px #c7d2fe,
    1400px 600px #c7d2fe,
    600px 1400px #c7d2fe,
    1200px 1200px #c7d2fe;
}

#stars3 {
  width: 3px;
  height: 3px;
  box-shadow:
    500px 600px #6366f1,
    1000px 300px #8b5cf6,
    1500px 900px #d946ef;
  animation: animStar 140s linear infinite;
}
#stars3::after {
  content: "";
  position: absolute;
  top: 2000px;
  width: 3px;
  height: 3px;
  box-shadow:
    500px 600px #6366f1,
    1000px 300px #8b5cf6,
    1500px 900px #d946ef;
}

@keyframes animStar {
  from { transform: translateY(0); }
  to   { transform: translateY(-2000px); }
}

/* Page layout */
.page {
  position: relative;
  min-height: 100vh;
  padding: 24px clamp(16px, 4vw, 40px) 40px;
  backdrop-filter: blur(24px);
  background:
    radial-gradient(circle at 0% 0%, rgba(99,102,241,0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(217,70,239,0.14), transparent 55%),
    rgba(3, 4, 10, 0.85);
}

/* Header */
.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(10px, 3vw, 16px);
  margin-bottom: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 26px;
  height: 26px;
}
.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}

/* Nav */
.cp-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.cp-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}
.cp-nav a:hover {
  color: var(--text-0);
  border-color: var(--border-subtle);
  background: rgba(255,255,255,0.04);
}
.cp-nav .nav-cta {
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  font-weight: 500;
  box-shadow: none;
}
.cp-nav a.nav-disabled,
.cp-nav a.nav-disabled:hover {
  color: var(--text-muted);
  border-color: var(--border-subtle);
  background: transparent;
  opacity: 0.65;
  cursor: not-allowed;
}
.lang-switch {
  border-color: rgba(148,163,184,0.45);
  font-size: 12px;
}

/* Hero */
.hero {
  padding: clamp(32px, 8vw, 32px) clamp(8px, 1vw, 16px) 40px;
}
.hero-content {
  max-width: 720px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 14px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-slogan {
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 14px;
}
.hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease-out;
}
.btn.primary {
  background: var(--accent-gradient);
  color: #020617;
  border: none;
  box-shadow: none;
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: none;
}
.btn.ghost {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--text-0);
}
.btn.ghost:hover {
  background: rgba(24, 32, 52, 1);
}
.btn.full {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-size: 11px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  color: var(--text-0);
}

/* Sections */
.section {
  margin-top: 8px;
  margin-bottom: 26px;
  padding: 24px clamp(12px, 2vw, 20px);
  border-radius: var(--radius-lg);
  background: var(--panel-bg-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.section-alt {
  background: rgba(10, 15, 30, 0.96);
}
.section-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
}

/* Cards & grids */
.cards-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(18, 23, 38, 0.96);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Features */
.features-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  padding: 14px 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(139, 92, 246, 0.6);
  background: rgba(15, 23, 42, 0.98);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.feature p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  margin-top: 18px;
  border-left: 1px solid rgba(148, 163, 184, 0.8);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-item {
  position: relative;
  padding-left: 10px;
}
.timeline-item .dot {
  position: absolute;
  left: -20px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #a855f7, #4f46e5);
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.95);
}
.timeline-item .content h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.timeline-item .content .capability-tagline {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-0);
  opacity: 0.85;
}
.timeline-item .content p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}
.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-soft);
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 1);
  color: var(--text-0);
  font: inherit;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.8);
}
.field textarea {
  resize: vertical;
}
.form-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Footer */
.cp-footer {
  margin-top: 24px;
  padding-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
}
.footer-dot {
  opacity: 0.7;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1100px) {
  .hero-content {
    max-width: 1100px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .features-grid,
  .cards-grid,
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {

  .cp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cp-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .page {
    padding-top: 16px;
  }
  .cp-header {
    position: static;
  }
  .features-grid,
  .cards-grid,
  .cards-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Success animation */
.success-animation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #c084fc; /* Lavender violet */
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  animation: successFadeIn 0.45s ease forwards;
}

.success-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
