/* ============================================================
   Squadly Website — style.css
   ============================================================ */

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

:root {
  --green:     #16A34A;
  --green-lt:  #22C55E;
  --dark:      #0B1120;
  --dark2:     #111827;
  --dark3:     #1F2937;
  --border:    #1F2937;
  --text:      #F9FAFB;
  --muted:     #9CA3AF;
  --radius:    12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--green-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-lt);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

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

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.15);
  color: var(--green-lt);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ── STORE BUTTONS ────────────────────────────────────────── */
.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
}

.btn-store:hover { transform: translateY(-2px); opacity: 0.9; text-decoration: none; }

.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-apple {
  background: var(--text);
  color: var(--dark);
}

.btn-google {
  background: var(--green);
  color: white;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--dark2);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
}

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

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

.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how {
  padding: 80px 0;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.step {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 280px;
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.88rem;
}

.step-arrow {
  font-size: 1.6rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, #0d2416 0%, #0B1120 60%);
  border-top: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 36px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

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

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── PAGE HEADER (privacy / support) ─────────────────────── */
.page-header {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── DOC CONTENT ──────────────────────────────────────────── */
.doc-content {
  padding: 60px 0 80px;
}

.doc-container {
  max-width: 760px;
}

.doc-container h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.doc-container h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-lt);
  margin: 20px 0 8px;
}

.doc-container p {
  color: #D1D5DB;
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.doc-container ul {
  color: #D1D5DB;
  font-size: 0.95rem;
  margin: 0 0 14px 20px;
  line-height: 1.7;
}

.doc-container li { margin-bottom: 6px; }

.contact-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-lt);
}

/* ── SUPPORT PAGE ─────────────────────────────────────────── */
.support-contact-card {
  background: linear-gradient(135deg, rgba(22,163,74,0.1), rgba(22,163,74,0.04));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 60px;
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.support-contact-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}

.support-contact-card p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 24px;
}

.btn-email {
  display: inline-block;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn-email:hover { opacity: 0.85; text-decoration: none; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.support-footer-note {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── LANG SELECTOR ────────────────────────────────────────── */
.lang-selector {
  display: flex;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.lang-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 16px; }
}
