/* =========================================
   1. CSS Reset & Variables (Google Analytics Orange Light Theme)
   ========================================= */
:root {
  color-scheme: light;
  --bg-top: #f8fafc;
  --bg-mid: #ffffff;
  --bg-bottom: #f1f5f9;
  --bg-section: rgba(241, 245, 249, 0.7);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --ga-orange-light: #e65100;
  --ga-orange: #f57c00;
  --ga-orange-dark: #c46200;
  --amber-500: #d97706;
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-hover: rgba(0, 0, 0, 0.04);
  --border-light: rgba(0, 0, 0, 0.1);
  
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul { list-style: none; }

/* =========================================
   2. Layout & Typography Utilities
   ========================================= */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media(min-width: 640px) { .container { padding: 0 1.5rem; } }
@media(min-width: 1024px) { .container { padding: 0 2rem; } }

.section {
  padding: 4rem 0;
}
@media(min-width: 768px) { .section { padding: 6rem 0; } }

.section-bg {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.title-main {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #0f172a;
}
@media(min-width: 768px) { .title-main { font-size: 3.75rem; } }

.title-section {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
}
@media(min-width: 768px) { .title-section { font-size: 2.25rem; } }

.title-small { font-size: 1.25rem; font-weight: 600; color: #0f172a; }

.text-orange { color: var(--ga-orange-dark); }
.text-orange-light { color: var(--ga-orange); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); font-size: 0.875rem; }

.font-semibold { font-weight: 600; }

/* =========================================
   3. UI Components (Cards, Buttons, Forms)
   ========================================= */
.grid-card {
  border: 1px solid var(--border-light);
  background: var(--glass-bg);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.ring-box {
  box-shadow: 0 0 0 1px var(--border-light) inset, var(--shadow-soft);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
}

.pill {
  border: 1px solid var(--border-light);
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background-color: var(--ga-orange);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-primary:hover { background-color: var(--ga-orange-dark); }

.btn-primary-lg {
  background-color: var(--ga-orange);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
.btn-primary-lg:hover { background-color: var(--ga-orange-dark); }

.btn-outline {
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
.btn-outline:hover { background-color: var(--glass-hover); }

.btn-ghost {
  border: 1px solid rgba(245, 124, 0, 0.4);
  background: transparent;
  color: var(--ga-orange-dark);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.btn-ghost:hover { background-color: rgba(245, 124, 0, 0.05); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus {
  outline: none;
  border-color: var(--ga-orange);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================
   4. Consent Banner Styles
   ========================================= */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 1rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
  display: none;
}
.consent-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media(min-width: 768px) {
  .consent-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.consent-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 50rem;
  line-height: 1.5;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* =========================================
   5. Specific Sections
   ========================================= */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sticky-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  display: inline-grid;
  place-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, var(--ga-orange), var(--ga-orange-dark));
  box-shadow: var(--shadow-soft);
  color: #fff;
}
.logo-text { line-height: 1.1; }
.logo-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--ga-orange-dark);
}
.logo-sub { font-size: 0.6875rem; color: var(--text-dim); }

.nav-links { display: none; }
@media(min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}
.nav-links a.nav-item { color: var(--text-muted); }
.nav-links a.nav-item:hover { color: var(--text-main); }

/* Hero */
.hero-wrap { position: relative; overflow: hidden; }
.radial-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse at top, rgba(245,124,0,.1), transparent 60%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
@media(min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-desc { font-size: 1.125rem; color: var(--text-muted); max-width: 36rem; margin: 1.5rem 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; margin-top: 2rem; }
.stat-num { font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--text-main); }
@media(min-width: 768px) { .stat-num { font-size: 3rem; } }
.stat-label { font-size: 0.875rem; color: var(--text-dim); margin-top: 0.25rem; }

.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-card-title { display: flex; align-items: center; gap: 0.5rem; color: var(--ga-orange-dark); font-weight: 600; margin-bottom: 0.25rem; }
.feature-card-desc { font-size: 0.75rem; color: var(--text-dim); }

/* Generic Grid Layouts */
.split-grid { display: grid; gap: 2.5rem; align-items: flex-start; }
@media(min-width: 1024px) {
  .split-grid-2-1 { grid-template-columns: 2fr 1fr; }
  .split-grid-1-1 { grid-template-columns: 1fr 1fr; }
}
.desc-text { color: var(--text-muted); margin-top: 1rem; line-height: 1.6; }

.icon-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--text-muted); }
.icon-list i { margin-top: 0.125rem; color: var(--ga-orange); flex-shrink: 0; }

/* Services & Tech Stack */
.services-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.services-grid { display: grid; gap: 1.25rem; }
@media(min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1280px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.mini-grid { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
@media(min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.footer-wrap { border-top: 1px solid var(--border-light); padding: 2rem 0; background-color: #ffffff; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
@media(min-width: 768px) { .footer-inner { flex-direction: row; } }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: background-color 0.2s;
}
.back-to-top:hover { background-color: #f8fafc; }
.back-to-top i { transform: rotate(-90deg); color: var(--text-main); }
