/* ============================================================
   GetinTime — getintime.app  |  Shared stylesheet
   Palette: navy #0A1628 · blue #3B82F6 · dark blue #2563EB
   ============================================================ */

:root {
  --bg:            #0A1628;
  --bg-card:       #0F1F3D;
  --bg-card-hover: #132444;
  --accent:        #3B82F6;
  --accent-dark:   #2563EB;
  --accent-glow:   rgba(59, 130, 246, 0.14);
  --text:          #E2E8F0;
  --text-muted:    #94A3B8;
  --border:        rgba(59, 130, 246, 0.18);
  --radius:        16px;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 22, 40, 0.88);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, color 0.2s;
}

.lang-select:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-header:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-text p {
  margin: 0 0 40px;
  max-width: 500px;
}

.hero-text .cta-group {
  justify-content: flex-start;
}

.hero-phone {
  flex: 0 0 auto;
}

.hero-phone img {
  width: 260px;
  display: block;
  filter: drop-shadow(0 24px 56px rgba(0,0,0,0.5));
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  margin-bottom: 32px;
  box-shadow: 0 16px 56px rgba(59, 130, 246, 0.35), 0 4px 16px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #E2E8F0;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.btn-appstore {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-appstore img {
  height: 54px;
  width: auto;
  display: block;
}

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

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

/* ── SECTIONS ────────────────────────────────────────────── */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 52px;
}

/* ── FEATURES GRID ───────────────────────────────────────── */

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

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

.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

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

/* ── CAROUSEL ────────────────────────────────────────────── */

.carousel {
  position: relative;
  width: 240px;
}

.carousel-slides {
  width: 240px;
  height: 500px;
  position: relative;
  cursor: grab;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 24px 56px rgba(0,0,0,0.5));
  pointer-events: none;
  user-select: none;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 6px;
  padding: 2px 7px;
  margin-top: 10px;
}

/* ── PRIVACY STRIP ───────────────────────────────────────── */

.privacy-strip {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 72px 24px;
}

.privacy-strip .lock-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}

.privacy-strip h2 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.privacy-strip p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.privacy-strip a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.privacy-strip a:hover { border-color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.footer-logo span {
  font-size: 15px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

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

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

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

/* ── LIGHTBOX ────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: min(380px, 88vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── PROSE (privacy / support pages) ────────────────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.prose h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 10px;
}

.prose p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose ul {
  list-style: none;
  margin-bottom: 14px;
}

.prose ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.prose a:hover { border-color: var(--accent); }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq-list { margin-top: 16px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary:hover { background: var(--bg-card); }

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 40px;
    max-width: 100%;
  }

  .hero-text .cta-group {
    justify-content: center;
  }

  .hero-phone img,
  .carousel,
  .carousel-slides {
    width: 180px;
  }

  .carousel-slides {
    height: 375px;
  }
}

@media (max-width: 700px) {
  nav { display: none; }

  .header-inner { padding: 0 16px; }

  .hero { padding: 64px 16px 32px; }

  .app-icon { width: 88px; height: 88px; border-radius: 20px; }

  .section { padding: 36px 16px; }

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

  .footer-inner { flex-direction: column; align-items: flex-start; }

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