/* ==========================================================================
   Acefolk — Production Marketing Stylesheet (Apple HIG Frozen Standard)
   Color Architecture:
     - 60% Canvas: #0C0F14 (Obsidian Dark)
     - 30% Elevated Surface: #2A3036
     - 10% Interactive Blue: #0067C8 / #0A84FF
     - The White Text Law: #FFFFFF for titles & headings (19.19:1 AAA contrast)
   ========================================================================== */

:root {
  --bg-canvas: #0C0F14;
  --bg-surface: #161B22;
  --bg-surface-elevated: #2A3036;
  --bg-glass: rgba(42, 48, 54, 0.75);
  
  --brand-blue: #0A84FF;
  --button-blue: #0067C8;
  --button-blue-hover: #0056A8;
  --status-success: #30D158;
  --rating-gold: #FBBF24;
  
  --text-white: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(10, 132, 255, 0.5);
  
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius-card: 20px;
  --radius-pill: 999px;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-white);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-right .nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-right .nav-link:hover {
  color: var(--text-white);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--button-blue);
  color: var(--text-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--button-blue-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section (Toing & Locket Style)
   ========================================================================== */
.hero {
  padding: 80px 0 96px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-heading {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

.store-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Store Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.store-btn-play {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.store-btn-play:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}

.store-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-btn-text small {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.store-btn-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.store-btn-apple {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.store-btn-apple:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.store-btn-apple .store-btn-text small {
  color: var(--text-muted);
}

.store-btn-apple .store-btn-text strong {
  color: var(--text-secondary);
}

.chip-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Proof Line */
.hero-proof-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.proof-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Phone Mockup Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup-chassis {
  width: 100%;
  max-width: 320px;
  border-radius: 44px;
  padding: 10px;
  background: #1C2229;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.phone-mockup-inner {
  border-radius: 34px;
  overflow: hidden;
  background: #0C0F14;
  line-height: 0;
}

.phone-mockup-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-border {
  border-top: 1px solid var(--border-subtle);
}

.section-header-block {
  margin-bottom: 44px;
}

.section-heading-left {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-white);
  margin-bottom: 8px;
}

.section-sub-left {
  font-size: 16px;
  color: var(--text-secondary);
}

.section-header-center {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading-center {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-white);
}

/* ==========================================================================
   Popular Skills Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.skill-img-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}

.skill-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skill-rate-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-feature-settings: 'tnum' on, 'lnum' on;
}

.skill-info {
  padding: 22px 20px 24px;
}

.skill-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.skill-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
}

.step-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   For Talent Banner
   ========================================================================== */
.section-partner {
  padding: 40px 0 88px;
}

.partner-box {
  background: linear-gradient(135deg, rgba(42, 48, 54, 0.65) 0%, rgba(22, 27, 34, 0.85) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 44px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.partner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.partner-text h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 8px;
}

.partner-text p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.55;
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-white);
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.partner-btn:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

/* ==========================================================================
   Section: Bottom CTA & QR Code
   ========================================================================== */
.bottom-cta-section {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.bottom-cta-box {
  background: linear-gradient(135deg, #171C23 0%, #1A212A 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: center;
}

.bottom-cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bottom-cta-box p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.bottom-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 18px;
  border-radius: 20px;
  width: fit-content;
  margin-left: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bottom-qr-wrap img {
  width: 130px;
  height: 130px;
  display: block;
}

.bottom-qr-wrap span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0C0F14;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer & Legal Compliance
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 60px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Toast Bubble */
.toast-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  padding: 14px 20px;
  border-radius: 14px;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-bubble.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .store-actions {
    justify-content: center;
  }
  .hero-proof-line {
    justify-content: center;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .partner-box {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .partner-btn {
    width: 100%;
    justify-content: center;
  }
  .bottom-cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bottom-qr-wrap {
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .hero-heading {
    font-size: 44px;
  }
  .store-actions {
    flex-direction: column;
    width: 100%;
  }
  .store-btn {
    width: 100%;
    justify-content: center;
  }
}
