/* ============================================
   KILO Website — Global Styles
   Dark mode only, matching the iOS app.
   ============================================ */

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

:root {
  --bg:        #000000;
  --surface1:  rgb(17, 17, 17);
  --surface2:  rgb(26, 26, 26);
  --border:    rgb(46, 46, 46);
  --muted:     rgb(135, 135, 135);
  --text:      #ffffff;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 100px;
  overflow: hidden;
  min-height: 540px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.18);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  border: none;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* App Store badge */
.app-store-badge {
  height: 44px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.app-store-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ---- FEATURES SECTION ---- */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  font-size: 24px;
  line-height: 1;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- DIVIDER ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 40px;
}

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center;
  padding: 80px 24px 100px;
}

.cta-section .section-heading {
  margin: 0 auto 32px;
}

/* ---- SUPPORT PAGE ---- */
.page-hero {
  padding: 80px 40px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--muted);
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.faq-item {
  background: var(--surface1);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-card-text .contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-card-text .contact-title {
  font-size: 18px;
  font-weight: 600;
}

.contact-card-text .contact-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- LEGAL PAGES ---- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.legal-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content p + p {
  margin-top: 12px;
}

/* ---- FOOTER ---- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 80px 20px 70px;
    min-height: 420px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section {
    padding: 56px 20px;
  }

  .section-heading {
    font-size: 28px;
  }

  .divider {
    margin: 0 20px;
  }

  .page-hero {
    padding: 56px 20px 40px;
  }

  .page-title {
    font-size: 36px;
  }

  .content-section {
    padding: 0 20px 60px;
  }

  .legal-content {
    padding: 0 20px 60px;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}
