/* ===== CSS Custom Properties ===== */
:root {
  --bg: #07110F;
  --card: #0D1C19;
  --border: #172620;
  --accent: #55C7FF;
  --text: #E2EBE9;
  --muted: #607570;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ===== Links ===== */
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(85, 199, 255, 0.25);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(85, 199, 255, 0.08);
  box-shadow: 0 8px 30px rgba(85, 199, 255, 0.1);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(7, 17, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 55px; display: block; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: rgba(85, 199, 255, 0.06);
  text-decoration: none;
}
.nav a.active {
  color: var(--accent);
  background: rgba(85, 199, 255, 0.08);
}
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--card); }

@media (max-width: 768px) {
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(7, 17, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 14px; width: 100%; }
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy {
  color: var(--muted);
  font-size: 13px;
}
.footer-copy a { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
/* Subtle gradient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(85, 199, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(85, 199, 255, 0.08);
  border: 1px solid rgba(85, 199, 255, 0.15);
  border-radius: 50px;
  width: fit-content;
}
.hero h1 {
  margin-bottom: 20px;
}
/* Accent gradient on specific words */
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), #88DBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* Glowing border effect */
  padding: 2px;
  background: linear-gradient(135deg, rgba(85, 199, 255, 0.2), rgba(85, 199, 255, 0.05), transparent);
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
/* Floating badge on the hero image */
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(7, 17, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (min-width: 768px) {
  .hero { padding: 100px 0 80px; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ===== Bento Feature Grid ===== */
.features {
  padding: 40px 0 60px;
}
.features-header {
  text-align: center;
  margin-bottom: 40px;
}
.features-header p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  border-color: rgba(85, 199, 255, 0.2);
  transform: translateY(-2px);
}
/* Subtle corner glow on hover */
.bento-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top left, rgba(85, 199, 255, 0.07), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card:hover::after { opacity: 1; }
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(85, 199, 255, 0.08);
  border: 1px solid rgba(85, 199, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
/* Highlighted card (spans 2 cols on desktop) */
.bento-card.wide { }
.bento-card .stat {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 12px;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card.wide {
    grid-column: span 2;
  }
}

/* ===== Info Strip ===== */
.info-strip {
  padding: 20px 0 40px;
}
.info-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  transition: border-color 0.2s;
}
.info-chip:hover { border-color: rgba(85, 199, 255, 0.2); }
.info-chip span { color: var(--accent); font-size: 16px; }

/* ===== Trust / CTA Section ===== */
.trust {
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.trust::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(85, 199, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.trust h2 { margin-bottom: 16px; }
.trust-text {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 16px;
}
.trust-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.trust-pill {
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(85, 199, 255, 0.04);
  transition: background 0.2s;
}
.trust-pill:hover { background: rgba(85, 199, 255, 0.08); }

/* ===== Screenshot Strip ===== */
.screenshots {
  padding: 40px 0 60px;
}
.screenshots h2 {
  text-align: center;
  margin-bottom: 32px;
}
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-track { background: var(--card); border-radius: 3px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.shots img {
  height: 420px;
  width: auto;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 1px solid var(--border);
  scroll-snap-align: start;
}

/* ===== Page Header (sub-pages) ===== */
.page-header {
  padding: 64px 0 40px;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(85, 199, 255, 0.03) 0%, transparent 100%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: 12px; }
.page-header .subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}
.page-header .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Support Cards ===== */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 60px;
}
.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s;
}
.support-card:hover { border-color: rgba(85, 199, 255, 0.2); }
.support-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(85, 199, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.support-card .email-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

@media (min-width: 600px) {
  .support-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Legal Pages ===== */
.legal-content {
  padding-bottom: 60px;
}
.legal-intro {
  margin-bottom: 32px;
  max-width: 680px;
}
.legal-intro p {
  color: var(--muted);
  font-size: 15px;
}
.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  transition: border-color 0.3s;
}
.legal-card:hover { border-color: rgba(85, 199, 255, 0.15); }
.legal-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(85, 199, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.legal-card-body h3 { margin-bottom: 6px; font-size: 15px; }
.legal-card-body p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.legal-footer-note {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== Utility ===== */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
