/* ============================================================
   GASIN – Design System
   main.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --orange:        #E8812A;
  --orange-dark:   #C96A1A;
  --orange-light:  #F4A55A;
  --dark:          #1A1A1A;
  --dark-2:        #242424;
  --dark-3:        #2E2E2E;
  --gray:          #6B6B6B;
  --gray-light:    #ABABAB;
  --light:         #F5F5F3;
  --light-2:       #EBEBEB;
  --white:         #FFFFFF;
  --border:        rgba(0,0,0,0.08);
  --border-dark:   rgba(255,255,255,0.12);

  --font-heading:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;

  --nav-h:         72px;
  --section-pad:   80px;
  --container:     1240px;
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow:        0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.16);
  --shadow-orange: 0 8px 32px rgba(232,129,42,.35);

  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: .18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scroll progress bar ────────────────────────────────────── */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media(max-width:768px) { .container { padding: 0 20px; } }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: .875rem; font-weight: 600; }
p { line-height: 1.75; color: var(--gray); font-size: 1rem; }

.label {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}
.label-dark { color: var(--gray-light); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn svg { width:16px; height:16px; flex-shrink:0; transition: transform var(--transition-fast); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 12px 40px rgba(232,129,42,.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-app {
  background: var(--dark);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.15);
  font-size: .8rem;
  padding: 10px 18px;
}
.btn-app:hover {
  background: var(--dark-2);
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Section spacing ────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* ── Divider accent ─────────────────────────────────────────── */
.accent-line {
  width: 40px; height: 3px;
  background: var(--orange);
  display: block; margin-bottom: 16px;
}

/* ── Grid helpers ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
@media(max-width:1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* ── Scroll animations ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity .8s ease;
}
.fade-in.visible { opacity: 1; }

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }
.fade-up:nth-child(6) { transition-delay: .5s; }

/* ── Back to top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-orange);
  z-index: 900;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}
#back-to-top.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--orange-dark); transform: translateY(-2px); }
#back-to-top svg { width:20px; height:20px; }

/* ── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px 32px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform .5s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { color: rgba(255,255,255,.75); font-size: .85rem; flex: 1; min-width: 260px; }
#cookie-banner a { color: var(--orange); }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ── Language switcher ──────────────────────────────────────── */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  font-size: .8rem; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.lang-switcher button {
  padding: 4px 10px;
  color: var(--gray);
  transition: var(--transition-fast);
}
.lang-switcher button.active {
  background: var(--orange);
  color: var(--white);
}
.lang-switcher button:hover:not(.active) { color: var(--dark); background: var(--light); }

/* ── Dark overlay section ───────────────────────────────────── */
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.65); }
.section-dark .label { color: var(--orange); }

/* ── Checklist ──────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .95rem; color: var(--gray); line-height: 1.5;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  background: var(--orange);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 12L2 7.5l1.4-1.4 3.1 3.1 6.1-6.1L14 4.5z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ── Stat blocks ────────────────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.stat-block .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  color: var(--dark); display: block;
}
.stat-block .stat-label { font-size: .8rem; color: var(--gray); margin-top: 4px; }

/* ── Quote block ────────────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  background: var(--light);
  font-size: 1rem;
  color: var(--dark);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* ── Responsive utilities ───────────────────────────────────── */
.hide-mobile { }
@media(max-width:768px) {
  .hide-mobile { display: none !important; }
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}
