/* ========================================
   DEVI — Global Styles
   ======================================== */

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

:root {
  --blue: #4288ff;
  --blue-light: #67beff;
  --blue-glow: rgba(66, 136, 255, 0.15);
  --bg-dark: #050608;
  --bg-section: #0a0a0c;
  --bg-card: #121214;
  --bg-card-hover: #18181b;
  --border: #1e1e22;
  --border-light: #2a2a2e;
  --text-primary: #f0f0f2;
  --text-secondary: #8a8a96;
  --text-muted: #555560;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAV
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 6, 8, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-cta:hover {
  color: var(--white);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-device {
  flex-shrink: 0;
}

.device-svg {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(66, 136, 255, 0.10));
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: #5a9dff;
  box-shadow: 0 0 32px rgba(66, 136, 255, 0.3);
}

/* ========================================
   SECTION TYPOGRAPHY
   ======================================== */

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ========================================
   FEATURES
   ======================================== */

.features {
  padding: 120px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   COMPATIBLE
   ======================================== */

.compatible {
  padding: 120px 0;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.logo-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.logo-item:hover {
  border-color: var(--blue);
  color: var(--white);
}

/* ========================================
   PITCH
   ======================================== */

.pitch {
  padding: 120px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pitch-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pitch-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--white);
}

.pitch-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ========================================
   SIGNUP
   ======================================== */

.signup {
  padding: 120px 0;
  text-align: center;
}

.signup-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 24px;
}

.signup-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.signup-msg {
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.signup-msg-success {
  color: #34d399;
}

.signup-msg-error {
  color: #f87171;
}

.signup-note {
  font-size: 14px;
  color: var(--text-muted);
}

.signup-note a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.signup-note a:hover {
  color: var(--blue);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.5px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .device-svg {
    width: 180px;
  }

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

@media (max-width: 600px) {
  .hero-title {
    letter-spacing: -1px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .signup-form {
    flex-direction: column;
  }

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

@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
