/* ═══════════════════════════════════════════
   APEX SYSTEMATIC — style.css
   ═══════════════════════════════════════════
   1.  Variables
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Buttons
   6.  Section Scaffolding
   7.  Header & Nav
   8.  Mobile Nav
   9.  Hero
   10. Services
   11. How It Works
   12. Pricing
   13. About
   14. Testimonials
   15. Contact & Form
   16. Footer
   17. Animations
   18. Media Queries
═══════════════════════════════════════════ */


/* ── 1. Variables ── */
:root {
  --bg:               #0E1117;
  --surface:          #131820;
  --surface-2:        #182030;
  --border:           #1E2838;
  --border-light:     #263040;

  --text:             #D8DCE4;
  --text-muted:       #5C6578;
  --text-dim:         #333D50;
  --white:            #FFFFFF;

  --gold:             #C9A84C;
  --gold-light:       #DDB95A;

  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', 'Helvetica Neue', sans-serif;

  --max-width:        1200px;
  --gutter:           28px;
  --section-y:        110px;
  --radius:           2px;

  --ease:             0.2s ease;
  --ease-slow:        0.4s ease;
}


/* ── 2. Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
textarea { resize: vertical; }


/* ── 3. Typography ── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}

h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.1rem; }

p  { color: var(--text-muted); line-height: 1.8; }


/* ── 4. Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-sub {
  max-width: 520px;
  font-size: 1.05rem;
  margin-top: 0.875rem;
  line-height: 1.75;
}


/* ── 5. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}


/* ── 7. Header & Nav ── */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo svg {
  height: 52px;
  width: auto;
}

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

.header-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease);
}

.header-nav a:hover {
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-nav.is-open {
  display: flex;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  transition: color var(--ease);
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav .btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  margin-top: 8px;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: color var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-close:hover {
  color: var(--white);
}


/* ── 9. Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-bottom: var(--section-y);
}

.hero .section-tag {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero .hero-sub {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ── 10. Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.service-card {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
  position: relative;
}

.service-card::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
  transition: width var(--ease-slow);
}

.service-card:hover::before {
  width: 56px;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: var(--surface);
}

.service-card h3 {
  margin-bottom: 0.875rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.75;
}


/* ── 11. How It Works ── */
.steps {
  border: 1px solid var(--border);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.step:last-child {
  border-bottom: none;
}

.step:hover {
  background: var(--surface);
}

.step-number {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 24px;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.step-content p {
  max-width: 580px;
}


/* ── 12. Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  gap: 1px;
  background: var(--border);
}

.pricing-card {
  background: var(--bg);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background var(--ease);
}

.pricing-card:hover {
  background: var(--surface);
}

.pricing-card--featured {
  background: var(--surface);
}

.pricing-card--featured:hover {
  background: var(--surface-2);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 12px;
  width: fit-content;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--white);
}

.pricing-card > p {
  font-size: 0.9rem;
  line-height: 1.75;
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 2px;
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}


/* ── 13. About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content h2 {
  max-width: 440px;
}

.about-content p {
  line-height: 1.8;
}

.about-tools {
  padding-top: 72px;
}

.tools-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 14px;
  transition: border-color var(--ease), color var(--ease);
  cursor: default;
}

.tool-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ── 14. Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  gap: 1px;
  background: var(--border);
}

.testimonial-card {
  background: var(--bg);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  transition: background var(--ease);
}

.testimonial-card:hover {
  background: var(--surface);
}

.testimonial-card > p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}


/* ── 15. Contact & Form ── */
.contact-form {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease);
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-success {
  display: none;
  max-width: 660px;
  padding: 24px;
  border: 1px solid var(--gold);
}

.form-success p {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}


/* ── 16. Footer ── */
.footer-wrap {
  border-top: 1px solid var(--border);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo svg {
  height: 44px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--ease);
}

.footer-legal a:hover {
  color: var(--text-muted);
}


/* ── Legal Pages ── */
.legal-page {
  padding-top: 64px;
  padding-bottom: var(--section-y);
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-page p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.legal-page ul {
  list-style: none;
  margin-bottom: 1.4rem;
}

.legal-page ul li {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 0.6rem;
}

.legal-page ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 4px;
}

.legal-page a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ── 17. Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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


/* ── 18. Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .section-tag  { animation: fadeInUp 0.6s ease 0.1s both; }
.hero h1            { animation: fadeInUp 0.6s ease 0.2s both; }
.hero .hero-sub     { animation: fadeInUp 0.6s ease 0.35s both; }
.hero .hero-actions { animation: fadeInUp 0.6s ease 0.5s both; }


/* ── 18. Media Queries ── */

/* Large tablet */
@media (max-width: 1024px) {
  :root { --section-y: 80px; }

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

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .service-card:nth-child(2) {
    border-right: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-tools {
    padding-top: 0;
  }

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

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-y: 64px;
    --gutter: 20px;
  }

  .header-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .step {
    flex-direction: column;
    gap: 16px;
    padding: 36px var(--gutter);
  }

  .pricing-card {
    padding: 36px var(--gutter);
  }

  .testimonial-card {
    padding: 36px var(--gutter);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}
