@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #050a14;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #7cf0c4;
  --accent-glow: rgba(124, 240, 196, 0.5);
  --accent-dark: #10b981;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
  --phone-bezel: #1e1e1e;
  --phone-edge: #3a3a3a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  /* Richer mesh gradient background */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(124, 240, 196, 0.08) 0px, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.08) 0px, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.06) 0px, transparent 40%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
  text-shadow: 0 0 8px rgba(124, 240, 196, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .feature-text, .card, .section-header {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.feature-text { animation-delay: 0.2s; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 10, 20, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(124, 240, 196, 0.3);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a:not(.cta) {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav-links a:not(.cta):hover {
  color: var(--text);
  text-shadow: none;
}

.nav-links a:not(.cta)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:not(.cta):hover::after {
  width: 100%;
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #050a14;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
  cursor: pointer;
  letter-spacing: -0.3px;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  filter: brightness(1.1);
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 110px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 580px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(124, 240, 196, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 240, 196, 0.15);
  box-shadow: 0 0 15px rgba(124, 240, 196, 0.1);
}

h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -2px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p.lead {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 300;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.8;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Enhanced Phone Frame */
.phone-frame {
  position: relative;
  border: 10px solid var(--phone-bezel);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 
    0 0 0 2px var(--phone-edge), /* Outer metallic edge */
    var(--shadow-lg);
  background: #000;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  z-index: 1;
}

/* Dynamic Notch */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 24px;
  background: var(--phone-bezel);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

/* Inner shadow/glare */
.phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 5;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual {
  position: relative;
  perspective: 1500px;
  display: flex;
  justify-content: center;
}

/* Ambient glow behind phone */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.15;
  top: 10%;
  left: 10%;
  z-index: 0;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.1; transform: scale(0.9); }
  to { opacity: 0.2; transform: scale(1.1); }
}

.hero-phone {
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 30px 40px 60px rgba(0,0,0,0.5);
}

.hero-phone:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-10px) scale(1.02);
}

/* Sections */
.section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-showcase {
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  font-size: 48px;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
  color: #fff;
}

.feature-text p {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 300;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 17px;
}

.feature-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #050a14;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(124, 240, 196, 0.4);
}

/* Grid Section */
.section-grid {
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 32px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

/* Subtle gradient border effect on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::after {
  opacity: 0.5;
}

.icon-box {
  font-size: 40px;
  margin-bottom: 24px;
  display: inline-block;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.card h3,
.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.card p,
.muted {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Section */
.section-cta {
  text-align: center;
  padding-bottom: 160px;
}

.cta-box {
  background: radial-gradient(circle at top, rgba(124, 240, 196, 0.05), transparent 70%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 52px;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.cta-box p {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 48px;
}

.hero-actions.centered {
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  background: rgba(5, 10, 20, 0.5);
}

.footer a {
  color: var(--muted);
  margin: 0 16px;
  position: relative;
}

.footer a:hover {
  color: var(--text);
}

/* Mobile Responsive */
@media (max-width: 960px) {
  h1 {
    font-size: 48px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    margin-top: 80px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .trust-badge {
    justify-content: center;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .feature-text h2 {
    font-size: 36px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-list {
    display: inline-grid;
    text-align: left;
    justify-content: center;
  }
  
  .nav-links {
    display: none; 
  }
}
