/* ==========================================================================
   KICKPRO GLOBAL DESIGN MODULE
   ========================================================================== */

:root {
  /* Core Color Specifications */
  --malachite: #00FFB2;             /* Custom Locked Brand Accent */
  --malachite-dark: #00E676;        /* Toned Down Interactive Green */
  --malachite-deep: #00C853;        /* Interactive Click/Hover Target States */
  --pitch-black: #050505;           /* Deep Canvas Background */
  --dark-surface: #111111;          /* Section Containers */
  --card-bg: #1a1a1a;               /* Core UI Cards */
  --border-technical: #2a2a2a;      /* Technical Instrument Rules[cite: 1] */
  --text-pure: #ffffff;             /* Primary Text Data[cite: 1] */
  --text-muted: #888888;            /* Secondary Metadata[cite: 1] */
  --text-body-dark: #aaaaaa;        /* Scannable Copy Blocks[cite: 1] */
  --text-light-mode: #cccccc;       /* High-Contrast Labels[cite: 1] */
  
  /* Typography Scale Constants */
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /*[cite: 1] */
}

/* Base Utility Resets */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } /*[cite: 1] */
html { scroll-behavior: smooth; } /*[cite: 1] */
body {
  font-family: var(--font-system); /*[cite: 1] */
  background: var(--pitch-black); /*[cite: 1] */
  color: var(--text-pure); /*[cite: 1] */
  line-height: 1.5; /*[cite: 1] */
}

/* Shared Structural Groupings */
.container { max-width: 1100px; margin: 0 auto; width: 100%; } /*[cite: 1] */
section { padding: 100px 40px; } /*[cite: 1] */

.label-caps { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: var(--malachite); text-transform: uppercase; margin-bottom: 16px; display: inline-block; } /*[cite: 1] */
.heading-large { font-size: clamp(32px, 4vw, 52px); font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.05; margin-bottom: 16px; } /*[cite: 1] */
.sub-paragraph { font-size: 16px; color: var(--text-muted); max-width: 560px; line-height: 1.6; } /*[cite: 1] */
.green-highlight { color: var(--malachite); } /*[cite: 1] */

/* Unified Action Targets */
.btn-base {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--malachite); /*[cite: 1] */
  color: var(--pitch-black); /*[cite: 1] */
  font-weight: 800; /*[cite: 1] */
  text-decoration: none; /*[cite: 1] */
  transition: background 0.2s, transform 0.1s; /*[cite: 1] */
}
.btn-base:hover { background: var(--malachite-dark); transform: translateY(-2px); } /*[cite: 1] */
.btn-base:focus-visible {
  outline: 2px solid var(--malachite);
  outline-offset: 2px;
}
.btn-base svg { width: 20px; height: 20px; fill: currentColor; } /*[cite: 1] */

/* App Store Badge designs conforming strictly with Apple marketing guidelines */
.app-store-btn {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s, opacity 0.2s;
  background: transparent;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.app-store-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.app-store-btn:focus-visible {
  outline: 2px solid var(--malachite);
  outline-offset: 2px;
}
.hero-app-store-btn img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-app-store-btn img {
  height: 40px;
  width: auto;
  display: block;
}

/* Responsive Framework Rules */
@media (max-width: 768px) {
  section { padding: 72px 20px; } /*[cite: 1] */
  .heading-large { font-size: 2rem; }
}

/* -------------------------
   Layout & Component Rules
   ------------------------- */

/* Nav */
.kickpro-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}
.nav-logo {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-light-mode); text-decoration: none; font-weight: 700; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text-pure); }
.nav-btn { padding: 8px 12px; border-radius: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-pure);
  position: relative;
  transition: transform 0.3s, background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-pure);
  left: 0;
  transition: transform 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Hero layout */
.hero { padding-top: 60px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.hero-headline { font-size: clamp(36px, 6vw, 64px); line-height: 1; }
.hero-sub { margin-top: 24px; color: var(--text-body-dark); max-width: 560px; font-size: 18px; line-height: 1.7; }
.hero-cta { margin-top: 32px; }

/* Phone mockup */
.phone-column .phone-shell {
  width: 320px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 36px;
  padding: 18px;
  border: 1px solid var(--border-technical);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.phone-viewport {
  height: 560px;
  background: linear-gradient(180deg, #222 0%, #111 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.phone-icon-box { font-size: 48px; }

/* Steps */
.steps-grid { display: flex; gap: 20px; margin-top: 24px; }
.step-card { background: var(--card-bg); padding: 24px; border-radius: 12px; border: 1px solid var(--border-technical); }
.step-number { font-size: 14px; font-weight: 700; color: var(--malachite); margin-bottom: 8px; }
.step-title { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.step-body { color: var(--text-muted); }

/* FAQ */
.faq-item { margin-top: 12px; border-bottom: 1px solid var(--border-technical); padding: 12px 0; }
.faq-trigger { background: none; border: 0; color: var(--text-pure); width: 100%; text-align: left; padding: 16px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: color 0.2s; }
.faq-trigger:hover, .faq-trigger:focus-visible { color: var(--malachite); }
.faq-trigger:focus-visible { outline: 2px solid var(--malachite); outline-offset: 2px; border-radius: 4px; }
.faq-toggle-icon { margin-left: 12px; color: var(--malachite); font-size: 24px; font-weight: 300; transition: transform 0.3s; }
.faq-content { display: none; color: var(--text-body-dark); margin-top: 8px; max-width: 680px; font-size: 16px; line-height: 1.7; }
.faq-item.open .faq-content { display: block; }
.faq-item.open .faq-toggle-icon { transform: rotate(45deg); }

/* Footer */
.kickpro-footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--border-technical);
  padding: 48px 40px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  font-size: 18px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-light-mode);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--text-pure);
}

/* Responsive overrides */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-column { order: -1; }
  .kickpro-nav { padding: 16px 20px; }
  .nav-toggle { display: block; }
  .nav-links-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--pitch-black);
    align-items: center;
    justify-content: center;
  }
  .kickpro-nav.nav-open .nav-links-wrapper { display: flex; }
  .nav-links { flex-direction: column; gap: 32px; }
  .nav-links a { font-size: 24px; }
  .nav-btn { display: none; }

  .kickpro-nav.nav-open .hamburger {
    background: transparent;
  }

  .kickpro-nav.nav-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
  }

  .kickpro-nav.nav-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .phone-viewport { height: 420px; }
  .steps-grid { flex-direction: column; }
  .footer-container { flex-direction: column; align-items: flex-start; }
}
