/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #06080F;
  --bg-card:      #0C1120;
  --border:       rgba(30, 58, 95, 0.55);
  --border-hover: rgba(14, 165, 233, 0.4);
  --blue:         #0EA5E9;
  --cyan:         #22D3EE;
  --text:         #F1F5F9;
  --text-muted:   #475569;
  --text-sec:     #94A3B8;
  --radius:       12px;
  --radius-lg:    20px;
}

html { scroll-behavior: smooth; }

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

/* ===== UTILITIES ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0284C7);
  color: #fff;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(14, 165, 233, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--blue);
  background: rgba(14, 165, 233, 0.05);
}

.btn-lg {
  padding: 0.875rem 2.25rem;
  font-size: 1rem;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(6, 8, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-accent { color: var(--blue); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

/* dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.13) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  top: -15%;
  right: -8%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.13) 0%, transparent 65%);
  animation: orb-float 14s ease-in-out infinite;
}
.hero-orb-2 {
  bottom: -20%;
  left: -12%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09) 0%, transparent 65%);
  animation: orb-float 18s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.06); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fade-up 0.6s ease both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-sec);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.75rem;
  animation: fade-up 0.6s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-up 0.6s ease 0.3s both;
}

/* ===== DIVIDER LINE ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== SECTION BASE ===== */
.section {
  padding: 7rem 0;
}
.section-alt {
  background: rgba(12, 17, 32, 0.5);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin-bottom: 3.5rem;
}

/* ===== PROBLEM SECTION ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.problem-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(14, 165, 233, 0.08);
}
.problem-icon {
  width: 42px;
  height: 42px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.problem-icon svg { width: 20px; height: 20px; }

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.problem-card p {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ===== SOLUTION SECTION ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.solution-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.solution-card:hover::after { opacity: 1; }
.solution-card:hover {
  border-color: rgba(14, 165, 233, 0.22);
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0,0,0,0.45), 0 0 50px rgba(14, 165, 233, 0.05);
}

.card-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}
.solution-card p {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ===== WHY SECTION ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
}
.why-item {
  padding: 2.5rem 3rem 2.5rem 2.25rem;
  border-left: 2px solid rgba(14, 165, 233, 0.2);
  transition: border-color 0.3s ease;
}
.why-item:hover { border-left-color: var(--blue); }

.why-num {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.why-item p {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.13;
  margin-bottom: 1.25rem;
}
.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 8rem 0 4rem; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .section { padding: 5rem 0; }
  .section-title { margin-bottom: 2.5rem; }

  .why-item {
    border-left: none;
    border-top: 2px solid rgba(14, 165, 233, 0.2);
    padding: 2rem 0;
  }
  .why-item:hover { border-top-color: var(--blue); }

  .footer-inner { flex-direction: column; text-align: center; }
}
