/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --primary:        #5865F2;
  --secondary:      #00D1B2;
  --bg:             #0a0a0a;
  --surface:        rgba(255, 255, 255, 0.04);
  --border:         rgba(255, 255, 255, 0.08);
  --text-muted:     rgba(255, 255, 255, 0.65);
  --gradient-brand: linear-gradient(135deg, #5865F2, #00D1B2);
  --radius-card:    24px;
  --radius-btn:     14px;
}

/* ── Reset ──────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: #ffffff;
  overflow-x: hidden;
}

/* ── Background glows ───────────────────────────────────────── */
.background-glow {
  position: fixed;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.09) 0%, rgba(88, 101, 242, 0) 100%);
  top: -350px;
  right: -300px;
  z-index: -1;
  filter: blur(40px);
}

.background-glow-2 {
  position: fixed;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 209, 178, 0.07) 0%, rgba(0, 209, 178, 0) 100%);
  bottom: -400px;
  left: -300px;
  z-index: -1;
  filter: blur(40px);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  color: #ffffff;
}

.logo-frame {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
}

.logo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: white;
}

/* Hamburger toggle — hidden on desktop, revealed at the mobile breakpoint */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--gradient-brand);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.25);
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
  font-size: 1rem;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-emails {
  display: flex;
  gap: 28px;
}

.footer-emails a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}

.footer-emails a:hover {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 680px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── iPhone mockup ──────────────────────────────────────────── */
.iphone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1a1a1a;
  border-radius: 50px;
  border: 2px solid #3a3a3a;
  box-shadow:
    0 0 0 1px #111,
    inset 0 0 0 2px #2a2a2a,
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(88, 101, 242, 0.15);
  overflow: visible;
}

.iphone::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 110px;
  width: 3px;
  height: 36px;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 50px 0 #2a2a2a, 0 96px 0 #2a2a2a;
}

.iphone::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 140px;
  width: 3px;
  height: 64px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}

.iphone-screen {
  position: absolute;
  inset: 8px;
  background: #0a0a0a;
  border-radius: 44px;
  overflow: hidden;
}

.iphone-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.iphone-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 16px 24px;
}

.iphone-placeholder-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.iphone-placeholder-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

.iphone-placeholder-text strong {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* Replace .iphone-content with <img class="iphone-screenshot"> when ready */
.iphone-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 44px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  /* Morph the hamburger into a close (×) when the menu is open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Collapsible dropdown — absolutely positioned so opening it causes no layout shift */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: rgba(18, 18, 20, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 50;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links .btn {
    margin-top: 4px;
    text-align: center;
  }
}

/* ── Mobile typography & spacing ────────────────────────────── */
@media (max-width: 680px) {
  section {
    padding: 70px 0;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .section-title h2 {
    font-size: 2rem;
  }
}
