/* ==========================================================================
   Girops — Design System & Stylesheet
   Modern, lightweight, responsive stylesheet with dark/light mode support
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --fg: #0f172a;
  --fg-heading: #020617;
  --muted: #64748b;
  --line: #e2e8f0;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --card-border: #f1f5f9;
  --accent: #059669;
  --accent-rgb: 5, 150, 105;
  --accent-hover: #047857;
  --accent-light: #ecfdf5;
  --accent-text: #065f46;
  --badge-bg: rgba(5, 150, 105, 0.08);
  --badge-border: rgba(5, 150, 105, 0.2);
  --badge-text: #047857;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --warn-text: #92400e;
  --phone-frame: #1e293b;
  --phone-screen: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-subtle: #111726;
    --fg: #e2e8f0;
    --fg-heading: #ffffff;
    --muted: #94a3b8;
    --line: #1e293b;
    --border: #1e293b;
    --card-bg: #111827;
    --card-border: #1f2937;
    --accent: #10b981;
    --accent-rgb: 16, 185, 129;
    --accent-hover: #34d399;
    --accent-light: rgba(16, 185, 129, 0.12);
    --accent-text: #6ee7b7;
    --badge-bg: rgba(16, 185, 129, 0.12);
    --badge-border: rgba(16, 185, 129, 0.25);
    --badge-text: #34d399;
    --warn-bg: #221c10;
    --warn-line: #453213;
    --warn-text: #fcd34d;
    --phone-frame: #030712;
    --phone-screen: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Containers */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  transition: all 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--fg-heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--muted);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-heading);
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Google Play Store Badge Button */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.play-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  border-color: #475569;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.play-btn-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.play-btn-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.play-btn-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fg-heading);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Phone Mockup */
.mockup-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone {
  width: 320px;
  background: var(--phone-frame);
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform 0.4s ease;
}

.phone:hover {
  transform: translateY(-6px) rotate(0.5deg);
}

.phone-screen {
  background: #0b1120;
  color: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  padding: 16px;
  font-size: 13px;
  position: relative;
  min-height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-island {
  width: 90px;
  height: 20px;
  background: #030712;
  border-radius: 20px;
  margin: 0 auto 14px;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.phone-user {
  font-size: 0.75rem;
  color: #94a3b8;
}

.phone-company {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.phone-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.phone-card-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.phone-card-amount {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.phone-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.phone-card-meta .pos {
  color: #34d399;
}

.phone-card-meta .neg {
  color: #f87171;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.phone-act-btn {
  background: #1e293b;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.phone-act-icon {
  font-size: 1.1rem;
}

.phone-act-btn.highlight {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.phone-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.phone-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.phone-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.phone-item-sub {
  font-size: 0.65rem;
  color: #94a3b8;
}

.phone-item-amount {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Highlights Section */
.highlights-bar {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hl-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hl-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hl-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-heading);
}

.hl-text p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Features Bento Grid */
.features-sec {
  padding: 90px 0;
}

.sec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.sec-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.sec-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--fg-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.sec-desc {
  font-size: 1.05rem;
  color: var(--muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-heading);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.tag {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

/* Steps Section */
.steps-sec {
  padding: 90px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg-heading);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-sec {
  padding: 90px 0;
}

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

details.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
}

details.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

summary.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg-heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary.faq-question::after {
  content: "−";
  color: var(--accent);
}

.faq-answer {
  padding-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* CTA Download Banner */
.cta-sec {
  padding: 80px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(5, 150, 105, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fg-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Legal Document Styles (privacy.html, delete-account.html, terms.html)
   ========================================================================== */
.legal-page {
  padding: 48px 0 96px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg-heading);
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal-header .sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-heading);
  margin: 36px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-heading);
  margin: 22px 0 8px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--fg);
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.legal-content th, .legal-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--fg-heading);
}

.legal-content .note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-content .steps {
  counter-reset: s;
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
}

.legal-content .steps li {
  counter-increment: s;
  position: relative;
  padding-left: 48px;
  margin-bottom: 18px;
}

.legal-content .steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-content .lang-switch-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.legal-content .lang {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 3px double var(--line);
}

.legal-content code {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bento-card.col-span-2 {
    grid-column: span 1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .phone {
    width: 290px;
  }
}
