/* ============================================================
   GeoSaffer Apps — Design System
   apps.geosaffer.com
   ============================================================ */

:root {
  --bg-base:        #070b14;
  --bg-card:        #0f1624;
  --bg-card-hover:  #161f33;
  --border:         rgba(255,255,255,0.07);
  --border-glow:    rgba(0,212,216,0.3);

  --gold:           #f5a623;
  --gold-light:     #ffc85a;
  --gold-dark:      #c47d0e;
  --teal:           #00d4d8;
  --teal-light:     #4ef0f3;
  --teal-dark:      #008f92;

  --text-primary:   #ffffff;
  --text-secondary: #8fa3c0;
  --text-muted:     #4a6080;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(0,212,216,0.15);

  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-light); }

/* ── Layout helpers ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section {
  padding: 96px 0;
  position: relative; z-index: 1;
  background: transparent;
}
.section-sm { padding: 64px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); background: rgba(0,212,216,0.1);
  border: 1px solid rgba(0,212,216,0.2);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text-primary); margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.25s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0e1a;
  box-shadow: 0 4px 24px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0e1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,166,35,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover {
  background: rgba(0,212,216,0.1);
  color: var(--teal-light);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* ── Navigation ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 8px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(7,11,20,0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nav-logo img { height: fit-content; width: 250px; max-width: 100%; }
.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 8px; }
.nav-mobile-cta { display: none; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img { width: auto; max-width: 180px; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(7,11,20,0.98); backdrop-filter: blur(20px);
    padding: 20px 24px 24px; gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .nav-links.open a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .nav-links.open .nav-mobile-cta { display: block; }
  .nav-links .btn-primary { color: #0a0e1a; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
}
#hero-canvas {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none; z-index: 1;
}
.hero-glow-2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,216,0.1) 0%, transparent 70%);
  bottom: 0; left: -50px; pointer-events: none; z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 183px 24px 80px 29px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3);
  color: var(--gold); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.08; margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #b0cce8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 .accent-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero h1 .accent-teal { background: linear-gradient(135deg, var(--teal), var(--teal-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 700px; margin-bottom: 40px; line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Divider ─────────────────────────────────────────────── */
.divider-line {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ── Apps Grid ───────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 56px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.app-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  background: var(--bg-card-hover);
}
.app-card-banner {
  height: 100px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  font-size: 3rem;
}
.app-card-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%);
}
.app-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.app-card-name {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text-primary);
}
.app-card-desc {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6; flex: 1; margin-bottom: 16px;
}
.app-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: 100px; letter-spacing: 0.05em;
}
.badge-web    { background: rgba(0,212,216,0.12); color: var(--teal); border: 1px solid rgba(0,212,216,0.25); }
.badge-ios    { background: rgba(120,120,255,0.12); color: #9b9bff; border: 1px solid rgba(120,120,255,0.25); }
.badge-android { background: rgba(100,220,100,0.12); color: #6adc6a; border: 1px solid rgba(100,220,100,0.25); }
.badge-game   { background: rgba(245,166,35,0.12); color: var(--gold); border: 1px solid rgba(245,166,35,0.25); }
.badge-live   { background: rgba(60,220,100,0.1); color: #4ddc80; border: 1px solid rgba(60,220,100,0.2); }
.badge-soon   { background: rgba(245,166,35,0.1); color: var(--gold); border: 1px solid rgba(245,166,35,0.2); }

.app-card-arrow {
  color: var(--text-muted); font-size: 1.1rem;
  transition: all 0.2s;
}
.app-card:hover .app-card-arrow { color: var(--teal); transform: translateX(4px); }

/* Card accent colours */
.banner-ark     { background: linear-gradient(135deg, rgba(46, 10, 15, 1) 0%, rgba(80, 12, 12, 1) 100%); }
.banner-ark-logo { height: fit-content; width: 80px; object-fit: contain; position: relative; z-index: 1; margin-top: 0; filter: drop-shadow(0 0 12px rgba(0,0,0,0.9)) drop-shadow(0 0 24px rgba(0,0,0,0.7)); }
.banner-flappy  { background: linear-gradient(135deg, #0a1a2e, #143064); }
.banner-geo     { background: linear-gradient(135deg, #0a2214, #0e4028); }
.banner-philter { background: linear-gradient(135deg, #1a0a2e, #2d1464); }
.banner-philter-logo { height: 116px; width: auto; object-fit: contain; position: relative; z-index: 1; margin-top: 0px; }
.banner-qr      { background: linear-gradient(135deg, #1a1a0a, #3a3010); }
.banner-qr-code { width: 57px; height: fit-content; overflow: visible; display: block; image-rendering: pixelated; position: relative; z-index: 1; margin-top: 0; margin-bottom: 0; }
.banner-thermo  { background: linear-gradient(135deg, #1a0a1e, #2e1040); }
.banner-thermo-logo { height: 80px; width: auto; object-fit: contain; position: relative; z-index: 1; }
.banner-dns     { background: linear-gradient(135deg, #0a1a2a, #0e2e4a); }
.banner-recipes { background: linear-gradient(135deg, #1a0a0a, #3a1010); }

/* ── Services ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-top: 56px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(245,166,35,0.08);
}
.service-icon {
  font-size: 2rem; margin-bottom: 18px;
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,166,35,0.08);
}
.service-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-desc { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Why Us ──────────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin-top: 56px;
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }
.why-features { display: flex; flex-direction: column; gap: 20px; }
.why-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color 0.3s;
}
.why-feature:hover { border-color: rgba(0,212,216,0.25); }
.why-feature-icon {
  font-size: 1.4rem; flex-shrink: 0; margin-top: 2px;
}
.why-feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.why-feature-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.why-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.why-glow-box {
  width: 100%; aspect-ratio: 1/1; max-width: 420px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(245,166,35,0.06), rgba(0,212,216,0.06));
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; text-align: center; gap: 24px;
}
.why-big-stat { font-size: 3.5rem; font-weight: 800; }
.why-big-stat-label { font-size: 0.9rem; color: var(--text-secondary); }
.why-divider { width: 1px; height: 60px; background: var(--border); }
.why-platforms { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.why-platform-pill {
  padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-secondary);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; margin-top: 56px;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(0,212,216,0.08); border: 1px solid rgba(0,212,216,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-info-value { font-size: 0.95rem; color: var(--text-primary); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,216,0.1);
}
.form-group textarea { min-height: 120px; }
.form-group select option { background: #0f1624; }

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(220,60,60,0.12);
}
.field-error {
  display: none; font-size: 0.78rem; color: #ff6b6b;
  margin-top: 6px; line-height: 1.4;
}
.field-error.visible { display: block; }

#form-status {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; display: none;
}
#form-status.success {
  display: block; background: rgba(60,220,100,0.1);
  border: 1px solid rgba(60,220,100,0.3); color: #4ddc80;
}
#form-status.error {
  display: block; background: rgba(220,60,60,0.1);
  border: 1px solid rgba(220,60,60,0.3); color: #ff6b6b;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 48px 0 32px;
  position: relative; z-index: 1;
  background: rgba(7, 11, 20, 0.77);
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-logo img { height: fit-content; width: 176px; }
.footer-brand-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal a:hover { color: var(--text-secondary); }

/* ── Mobile responsiveness ───────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container { padding: 0 16px; }

  .hero { min-height: auto; }
  .hero-content { padding: 120px 16px 48px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); margin-bottom: 18px; }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; line-height: 1.7; }
  .hero-actions { margin-bottom: 36px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; padding-top: 24px; }
  .hero-stat-value { font-size: 1.3rem; }

  .apps-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .service-card { padding: 24px 20px; }

  .why-grid { gap: 32px; margin-top: 36px; }
  .why-glow-box { aspect-ratio: auto; padding: 28px 20px; max-width: none; }
  .why-divider { width: 60px; height: 1px; }

  .contact-wrap { gap: 32px; margin-top: 36px; }
  .contact-form { padding: 24px 18px; }

  footer { padding: 36px 0 24px; }
  .footer-inner { gap: 28px; margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .hero-content { padding: 100px 12px 40px; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .hero-badge { font-size: 0.7rem; padding: 6px 12px; }
  .hero-sub { font-size: 0.92rem; }
  .hero-stat-value { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.72rem; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-subtitle { font-size: 0.95rem; }

  .contact-form { padding: 20px 14px; }
  .nav-logo img { width: 150px; }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .badge { padding: 6px 12px; font-size: 0.72rem; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .why-platform-pill { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 18px; }
}

/* ── Scroll animations ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #1e2d45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a3f5f; }
