:root {
  --bg-0: #0b0b0d;
  --bg-1: #121214;
  --txt:  #ffffff;
  --muted:#a5acb8;
  --brand-1:#00e5ff;
  --brand-2:#7a3cff;
  --brand-3:#46ffd7;
  --shadow: 0 8px 28px rgba(0,0,0,.45), 0 2px 10px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui;
  color: var(--txt);
  background: var(--bg-0);
}

.container { 
  width: 100%; 
  max-width: 1120px; 
  margin-inline: auto; 
  padding: 0 20px;
}

/* Top nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--txt); font-size: 24px; text-decoration: none; }
.app-name {
  font-style: italic;
  font-weight: 600;
  color: var(--txt);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.brand-logo {
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; gap: 22px; color: var(--muted); font-weight: 500; }
.nav-cta { display: flex; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; border: none;
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--txt); border: 1px solid rgba(255,255,255,.12);
}

/* Hero */
.hero {
  position: relative; text-align: center; padding: 80px 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url('header_bg.png') center/cover no-repeat;
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; font-weight: 800; }

/* Cards */
.grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}
.card {
  background: var(--bg-1); border-radius: 16px; padding: 20px;
  display: flex; align-items: center; gap: 16px;
}
.icon {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: #111;
  position: relative;
  flex-shrink: 0;
}
.icon::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.icon svg {
  width: 28px; height: 28px; stroke: #fff; stroke-width: 2; fill: none;
  z-index: 1;
}

/* CTA */
#waitlist { text-align:center; padding:60px 0; background: var(--bg-1); margin-top: 60px; }
#waitlist h3 { font-size: 22px; margin-bottom: 8px; }
#waitlist p { margin: 0; color: var(--muted); }
#waitlist form { 
  margin-top: 16px; 
  display:flex; 
  justify-content:center; 
  gap:10px; 
  flex-wrap: wrap;
}
#waitlist input {
  width: 100%; 
  max-width: 320px; 
  padding: 12px 14px; 
  border-radius: 999px; 
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,9,12,.6); 
  color: var(--txt);
  outline: none;
}

footer { background: #0e0f12; padding: 24px 0; color: var(--muted); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; }
.foot-right { display:flex; gap: 18px; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-1);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: var(--txt);
  font-size: 24px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt);
}

.modal-body {
  padding: 32px 24px;
  text-align: center;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  justify-content: center;
}

/* Success state for form */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h3 {
  color: var(--brand-1);
  font-size: 24px;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  /* Navigation */
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  
  .brand {
    font-size: 20px;
  }
  
  .brand-logo img {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Hero */
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  /* Cards Grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  
  .icon {
    width: 60px;
    height: 60px;
  }
  
  .icon svg {
    width: 24px;
    height: 24px;
  }
  
  /* Waitlist Form */
  #waitlist {
    padding: 40px 0;
    margin-top: 40px;
  }
  
  #waitlist h3 {
    font-size: 20px;
  }
  
  #waitlist form {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  #waitlist input {
    width: 100%;
    max-width: 280px;
  }
  
  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .brand {
    font-size: 18px;
  }
  
  .brand-logo img {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  /* Navigation */
  .nav {
    padding: 12px 0;
  }
  
  .brand {
    font-size: 18px;
  }
  
  .brand-logo img {
    width: 45px !important;
    height: 45px !important;
  }
  
  /* Hero */
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  /* Cards */
  .card {
    padding: 20px 16px;
  }
  
  .icon {
    width: 50px;
    height: 50px;
  }
  
  .icon svg {
    width: 20px;
    height: 20px;
  }
  
  /* Waitlist */
  #waitlist {
    padding: 30px 0;
    margin-top: 30px;
  }
  
  #waitlist h3 {
    font-size: 18px;
  }
  
  #waitlist input {
    max-width: 100%;
  }
  
  /* Footer */
  .footer-inner {
    gap: 16px;
  }
  
  .brand {
    font-size: 16px;
  }
  
  .brand-logo img {
    width: 35px !important;
    height: 35px !important;
  }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}
