/* ═══════════════════════════════════════════════════════════
   GembaGrid — Product Website Design System
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
  /* Brand Palette */
  --navy:       #0F2749;
  --navy-deep:  #060d1a;
  --navy-mid:   #0d1d38;
  --navy-light: #1a3a66;
  --orange:     #F99635;
  --orange-hot: #ff7e29;
  --white:      #f0f4f8;
  --white-dim:  rgba(240,244,248,0.65);
  --white-mute: rgba(240,244,248,0.42);
  --white-ghost:rgba(240,244,248,0.12);
  --blue-accent:#3b82f6;
  --red-accent: #ef4444;
  --green-accent:#10b981;
  --purple-accent:#8b5cf6;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #060d1a 0%, #0F2749 50%, #1a3a66 100%);
  --grad-orange:  linear-gradient(135deg, #F99635, #ff7e29);
  --grad-card:    linear-gradient(145deg, rgba(26,58,102,0.45), rgba(10,20,40,0.8));
  --grad-glass:   linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

  /* Spacing */
  --section-pad-y: 120px;
  --section-pad-x: 80px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Typography scale */
  --fs-display: clamp(2.6rem, 5vw, 4rem);
  --fs-h2:      clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3:      clamp(1.1rem, 2vw, 1.35rem);
  --fs-body:    1.05rem;
  --fs-small:   0.88rem;
  --fs-micro:   0.75rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition:  0.4s var(--ease-smooth);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: rgba(249,150,53,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,150,53,0.5); }

/* ── SELECTION ── */
::selection { background: rgba(249,150,53,0.3); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-nav.scrolled {
  background: rgba(6,13,26,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(249,150,53,0.08), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-logo {
  height: 36px;
  width: auto;
  transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--white-dim);
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--orange); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-orange);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--grad-orange);
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  font-size: var(--fs-small) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(249,150,53,0.35);
  color: var(--navy-deep) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════════════════ */
section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(249,150,53,0.45);
  color: var(--orange);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1 {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
}

.accent { color: var(--orange); }

.desc {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 680px;
}

.desc-center {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════
   DECORATIVE ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.orb-orange { background: var(--orange); width: 600px; height: 600px; }
.orb-blue   { background: var(--blue-accent); width: 500px; height: 500px; }

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(249,150,53,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 100px;
  background: var(--grad-orange);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 48px rgba(249,150,53,0.35), 0 4px 16px rgba(249,150,53,0.2);
}

.cta-btn:hover::before { opacity: 1; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(240,244,248,0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.cta-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 24px rgba(249,150,53,0.1);
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--grad-card);
  border: 1px solid rgba(249,150,53,0.1);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,150,53,0.3);
  box-shadow: 0 20px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(249,150,53,0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #bf5c08 0%, #e07a18 45%, #F99635 100%);
  box-shadow: 0 4px 18px rgba(191,92,8,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255,255,255,0.95);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 8px; }

.card p {
  font-size: var(--fs-small);
  color: var(--white-mute);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   SCREENSHOT FRAMES
   ═══════════════════════════════════════════════════════════ */
.ss-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(90,140,220,0.18),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 40px rgba(249,150,53,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ss-frame:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow:
    0 28px 60px rgba(90,140,220,0.22),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 50px rgba(249,150,53,0.1);
}

.ss-frame img { display: block; width: 100%; }

.ss-tilt {
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
}

.ss-tilt:hover {
  transform: perspective(1400px) rotateY(-1deg) rotateX(0.5deg) translateY(-6px);
}

.ss-tilt-x {
  transform: perspective(2000px) rotateX(8deg);
  transform-origin: center top;
}

.ss-tilt-x:hover {
  transform: perspective(2000px) rotateX(3deg) translateY(-6px);
}

/* ═══════════════════════════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════════════════════════ */
.check-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--white-dim);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════════ */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(249,150,53,0.1);
  font-size: var(--fs-small);
  margin-top: 32px;
}

.comp-table th {
  background: rgba(249,150,53,0.08);
  padding: 16px 22px;
  text-align: left;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 700;
}

.comp-table td {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(249,150,53,0.04);
  color: var(--white-dim);
}

.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child   { font-weight: 600; color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   KPI / IMPACT METRICS
   ═══════════════════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.kpi-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid rgba(249,150,53,0.08);
  transition: transform var(--transition), border-color var(--transition);
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249,150,53,0.2);
}

.kpi-val {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.kpi-lbl {
  font-size: var(--fs-micro);
  color: var(--white-mute);
  margin-top: 8px;
  font-weight: 500;
}

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

.impact-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid rgba(249,150,53,0.1);
  transition: transform var(--transition);
}

.impact-card:hover { transform: translateY(-3px); }

.impact-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.impact-unit {
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: 6px;
}

.impact-desc {
  font-size: 0.82rem;
  color: var(--white-mute);
  margin-top: 10px;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  position: relative;
}

#hero .section-inner {
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-tagline {
  margin-top: 24px;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-screenshot {
  margin-top: 64px;
  width: 100%;
  max-width: 1100px;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: var(--fs-micro);
  color: var(--white-mute);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUNDS FOR SECTIONS
   ═══════════════════════════════════════════════════════════ */
.bg-deep   { background: var(--navy-deep); }
.bg-navy   { background: var(--navy-mid); }
.bg-accent { background: linear-gradient(160deg, #060d1a 0%, #0d1d38 50%, #1a3a66 100%); }
.bg-warm   {
  background:
    radial-gradient(ellipse 70% 55% at 80% 15%, rgba(255,248,235,0.04) 0%, transparent 65%),
    linear-gradient(160deg, #060d1a 0%, #0d1d38 100%);
}

/* ═══════════════════════════════════════════════════════════
   SPLIT LAYOUT
   ═══════════════════════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* ═══════════════════════════════════════════════════════════
   FEATURE GRID
   ═══════════════════════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(249,150,53,0.06);
  padding: 64px var(--section-pad-x) 32px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(249,150,53,0.06);
}

.footer-brand p {
  font-size: var(--fs-small);
  color: var(--white-mute);
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: var(--fs-small);
  color: var(--white-mute);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: var(--fs-micro);
  color: rgba(240,244,248,0.2);
}

.footer-bottom a { color: var(--white-mute); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--orange); }

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  stroke: var(--white-mute);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.footer-socials a:hover svg { stroke: var(--orange); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS (scroll-triggered)
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.30s; }
.reveal.d4 { transition-delay: 0.42s; }
.reveal.d5 { transition-delay: 0.54s; }
.reveal.d6 { transition-delay: 0.66s; }
.reveal.d7 { transition-delay: 0.78s; }

/* Floating animation for hero screenshot */
@keyframes float {
  0%, 100% { transform: perspective(2000px) rotateX(8deg) translateY(0); }
  50%      { transform: perspective(2000px) rotateX(8deg) translateY(-10px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* Pulse glow for CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,150,53,0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(249,150,53,0); }
}

.pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

/* Gradient text shimmer */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--orange) 0%, #ffd700 25%, var(--orange) 50%, #ffd700 75%, var(--orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 80px;
    --section-pad-x: 40px;
  }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse { direction: ltr; }

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

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

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

@media (max-width: 768px) {
  :root {
    --section-pad-y: 64px;
    --section-pad-x: 20px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6,13,26,0.96);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open a { font-size: 1.2rem; }

  .feature-grid-3,
  .feature-grid-4,
  .feature-grid { grid-template-columns: 1fr; }

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

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .hero-actions { flex-direction: column; }

  .site-nav { padding: 0 20px; }

  .comp-table { font-size: 0.78rem; }
  .comp-table th,
  .comp-table td { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
