/* ============================================================
   ASIMOV SKILLS — ONBOARDING PAGE
   Design System & Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-orange:       #ff7c11;
  --color-orange-dark:  #ff4d00;
  --color-red-orange:   #f91500;
  --color-black:        #000000;
  --color-near-black:   #100f0f;
  --color-white:        #ffffff;

  /* UI Colors */
  --color-bg:           #0c0c0c;
  --color-surface:      #161616;
  --color-surface-2:    #1e1e1e;
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-text:         #f0f0f0;
  --color-text-muted:   rgba(255, 255, 255, 0.55);

  /* Gradients */
  --gradient-brand:     linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 60%, var(--color-red-orange) 100%);
  --gradient-hero-bg:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 77, 0, 0.18) 0%, transparent 70%);
  --gradient-card:      linear-gradient(145deg, rgba(255, 124, 17, 0.1) 0%, rgba(255, 77, 0, 0.05) 100%);

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.375rem;
  --font-size-xl:   1.75rem;
  --font-size-2xl:  2.25rem;
  --font-size-3xl:  3rem;
  --font-size-4xl:  4rem;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(255, 124, 17, 0.25);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-2xl) 0;
}

/* --- Typography Utilities --- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(255, 124, 17, 0.12);
  border: 1px solid rgba(255, 124, 17, 0.3);
  padding: 0.3em 0.9em;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem var(--space-md);
  transition: background var(--transition-base), backdrop-filter var(--transition-base), border-bottom var(--transition-base);
}

.navbar.scrolled {
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--gradient-brand);
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: 100px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.navbar-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-bg);
  pointer-events: none;
}

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

.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse-orb 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-orb {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 52px;
  width: auto;
  margin-bottom: var(--space-lg);
  animation: fade-up 0.7s ease both;
}

.hero-welcome-tag {
  animation: fade-up 0.7s 0.1s ease both;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, var(--font-size-4xl));
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  max-width: 820px;
  animation: fade-up 0.7s 0.2s ease both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, var(--font-size-md));
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: var(--space-lg);
  animation: fade-up 0.7s 0.3s ease both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  animation: fade-up 0.7s 0.4s ease both;
}

.hero-scroll-hint {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  animation: fade-up 0.7s 0.6s ease both;
}

.scroll-dot {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-orange), transparent);
  border-radius: 2px;
  animation: scroll-line 1.6s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(255, 77, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 77, 0, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ============================================================
   DIFFERENCE SECTION (Skills vs Academy)
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

.diff-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.diff-card.academy::before { background: #85e8ea; }
.diff-card.skills::before  { background: var(--gradient-brand); }

.diff-card-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.diff-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.diff-card.skills h3 { color: var(--color-orange); }
.diff-card.academy h3 { color: #85e8ea; }

.diff-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.diff-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.diff-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.diff-card ul li::before {
  content: '→';
  flex-shrink: 0;
  margin-top: 0.05em;
}

.diff-card.skills ul li::before { color: var(--color-orange); }
.diff-card.academy ul li::before { color: #85e8ea; }

/* Shared Mockup */
.diff-card {
  display: flex;
  flex-direction: column;
}

.diff-mockup-wrapper {
  margin: var(--space-md) 0;
  perspective: 900px;
}

.diff-mockup-screen {
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center bottom;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.diff-card.academy .diff-mockup-screen {
  border: 1px solid rgba(133, 232, 234, 0.25);
  box-shadow:
    0 0 0 1px rgba(133, 232, 234, 0.1),
    0 8px 32px rgba(133, 232, 234, 0.15),
    0 24px 64px rgba(0, 0, 0, 0.5);
  transform: rotateX(5deg) rotateY(-2deg) scale(0.98);
}

.diff-card.skills .diff-mockup-screen {
  border: 1px solid rgba(255, 107, 28, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 107, 28, 0.1),
    0 8px 32px rgba(255, 107, 28, 0.15),
    0 24px 64px rgba(0, 0, 0, 0.5);
  transform: rotateX(5deg) rotateY(2deg) scale(0.98);
}

.diff-card.academy:hover .diff-mockup-screen {
  transform: rotateX(1deg) rotateY(0deg) scale(1);
  box-shadow:
    0 0 0 1px rgba(133, 232, 234, 0.2),
    0 12px 48px rgba(133, 232, 234, 0.25),
    0 32px 80px rgba(0, 0, 0, 0.5);
}

.diff-card.skills:hover .diff-mockup-screen {
  transform: rotateX(1deg) rotateY(0deg) scale(1);
  box-shadow:
    0 0 0 1px rgba(255, 107, 28, 0.2),
    0 12px 48px rgba(255, 107, 28, 0.25),
    0 32px 80px rgba(0, 0, 0, 0.5);
}

.diff-mockup-bar {
  background: #1a1d24;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.diff-mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.diff-mockup-bar span:nth-child(1) { background: #ff5f57; }
.diff-mockup-bar span:nth-child(2) { background: #febc2e; }
.diff-mockup-bar span:nth-child(3) { background: #28c840; }

.diff-mockup-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}

.diff-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  font-weight: 900;
  font-size: var(--font-size-sm);
  align-self: center;
  color: var(--color-text-muted);
}

/* ============================================================
   STEPS SECTION (Como acessar o Academy)
   ============================================================ */

/* Distinct Academy-branded section background */
#steps {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(133, 232, 234, 0.07) 0%, transparent 70%),
              var(--color-bg);
  border-top: 1px solid rgba(133, 232, 234, 0.15);
  border-bottom: 1px solid rgba(133, 232, 234, 0.15);
}

/* Tag override for Academy context */
#steps .tag {
  background: rgba(133, 232, 234, 0.12);
  color: #85e8ea;
  border-color: rgba(133, 232, 234, 0.25);
}

/* Title accent */
#steps h2 {
  background: linear-gradient(135deg, #ffffff 40%, #85e8ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: rgba(133, 232, 234, 0.03);
  border: 1px solid rgba(133, 232, 234, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.step-item:hover {
  background: rgba(133, 232, 234, 0.07);
  border-color: rgba(133, 232, 234, 0.35);
  transform: translateX(4px);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8f0f1, #3ab8d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--font-size-base);
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(133, 232, 234, 0.3);
}

.step-content h4 {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.step-content p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.step-content a {
  color: #85e8ea;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.step-content a:hover { opacity: 0.75; }

/* ============================================================
   PILLARS SECTION (O que você vai aprender)
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Breakpoints handled in the consolidated responsive block at end of file */

.pillar-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 124, 17, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 124, 17, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform var(--transition-slow);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  border-color: rgba(255, 124, 17, 0.4);
}

.pillar-card:hover::after {
  transform: scale(2);
}

/* Pillar SVG Icons */
.pillar-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon-wrap svg {
  width: 100%;
  height: 100%;
}

/* ── Animations ── */

/* Lightbulb: slow glow pulse */
@keyframes anim-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255,124,17,0.4)); transform: scale(1); }
  50%       { filter: drop-shadow(0 0 10px rgba(255,124,17,0.9)); transform: scale(1.1); }
}
.icon-study { animation: anim-glow 2.4s ease-in-out infinite; }

/* Notepad: gentle float */
@keyframes anim-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.icon-bujo { animation: anim-float 2.8s ease-in-out infinite; }

/* Chat bubble: heartbeat */
@keyframes anim-heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.15); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.1); }
  56%       { transform: scale(1); }
}
.icon-cnv { animation: anim-heartbeat 2s ease-in-out infinite; }

/* Code: typing cursor shift */
@keyframes anim-type {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-3px); }
  75%       { transform: translateX(3px); }
}
.icon-sell-code { animation: anim-type 1.6s ease-in-out infinite; }

/* Document: slide up */
@keyframes anim-slide {
  0%, 100% { transform: translateY(0); opacity: 1; }
  40%       { transform: translateY(-4px); opacity: 0.85; }
}
.icon-cv { animation: anim-slide 2.2s ease-in-out infinite; }

/* Clock: rotate hands — targets the polyline inside */
@keyframes anim-clock {
  from { transform: rotate(0deg); transform-origin: 12px 12px; }
  to   { transform: rotate(360deg); transform-origin: 12px 12px; }
}
.icon-time svg { overflow: visible; }
.icon-time .clock-hands { animation: anim-clock 6s linear infinite; transform-box: fill-box; transform-origin: 12px 12px; }

/* Book: gentle page-turn tilt */
@keyframes anim-tilt {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(-6deg); }
  60%       { transform: rotate(4deg); }
}
.icon-reading { animation: anim-tilt 3s ease-in-out infinite; }

/* Mic: vibrate */
@keyframes anim-vibrate {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20%       { transform: translateX(-2px) rotate(-4deg); }
  40%       { transform: translateX(2px) rotate(4deg); }
  60%       { transform: translateX(-1px) rotate(-2deg); }
  80%       { transform: translateX(1px) rotate(2deg); }
}
.icon-oratoria { animation: anim-vibrate 1.8s ease-in-out infinite; }

/* Zap: flash */
@keyframes anim-flash {
  0%, 90%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,124,17,0.3)); }
  95%           { opacity: 0.6; transform: scale(0.9); filter: drop-shadow(0 0 0 transparent); }
  97%           { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 12px rgba(255,124,17,1)); }
}
.icon-productivity { animation: anim-flash 2s ease-in-out infinite; }

.pillar-card h3 {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pillar-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.65;
}

.pillar-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 124, 17, 0.15);
  color: var(--color-orange);
  border: 1px solid rgba(255, 124, 17, 0.3);
  vertical-align: middle;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--color-surface);
  border: 1px solid rgba(255, 124, 17, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 77, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, var(--font-size-3xl));
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.cta-box p {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  text-align: center;
}

footer p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, var(--font-size-3xl));
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: var(--space-xs);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  max-width: 560px;
  margin-top: var(--space-sm);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — consolidated breakpoints
   ============================================================ */

/* ── Mobile ≤ 599px ── */
@media (max-width: 599px) {
  :root {
    --space-xl:  1.75rem;
    --space-2xl: 3rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Hero: compact — no need to take the full screen */
  .hero {
    min-height: auto;
    padding: 5.5rem 0 3rem;
  }

  .hero-logo {
    height: 32px;
    margin-bottom: var(--space-md);
  }

  /* Hide scroll hint — saves vertical space, redundant on touch */
  .hero-scroll-hint {
    display: none;
  }

  /* Stack buttons full-width for easy thumb tap */
  .hero-actions {
    width: 100%;
  }

  .btn {
    padding: 0.8rem 1.25rem;
    font-size: var(--font-size-sm);
    width: 100%;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-header p {
    font-size: var(--font-size-base);
  }

  /* Diff: stack vertically, hide VS badge */
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .diff-vs {
    display: none;
  }

  /* Steps: tighter padding */
  .step-item {
    padding: var(--space-sm) var(--space-sm);
  }

  /* Disable 3D perspective transforms on mobile — avoids render issues and saves GPU */
  .diff-mockup-wrapper {
    perspective: none;
  }

  .diff-card.academy .diff-mockup-screen,
  .diff-card.skills .diff-mockup-screen {
    transform: none;
  }

  /* Pillars: single column */
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  /* CTA box */
  .cta-box {
    padding: var(--space-xl) var(--space-sm);
    border-radius: var(--radius-lg);
  }
}

/* ── Large phones (600px – 767px): 2-col CTAs, 2-col pillars ── */
@media (min-width: 600px) and (max-width: 767px) {
  :root {
    --space-xl:  2rem;
    --space-2xl: 3.5rem;
  }

  /* Hero: still compact but no full-screen needed */
  .hero {
    min-height: auto;
    padding: 5.5rem 0 3rem;
  }

  .hero-logo {
    height: 36px;
    margin-bottom: var(--space-md);
  }

  /* CTAs side by side */
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

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

  .diff-vs {
    display: none;
  }

  .step-item {
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  /* 2 columns keeps cards bigger than 1-col on wider phones */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 9 cards on 2-col → 1 orphan: center it */
  .pillars-grid .pillar-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .cta-box {
    padding: var(--space-xl) var(--space-md);
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: var(--font-size-sm);
  }
}

/* ── Tablet (768px – 1023px): side-by-side CTAs, 2-col pillars, stacked diff ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --space-2xl: 5rem;
  }

  /* Hero takes less height so content below is visible sooner */
  .hero {
    min-height: 80vh;
  }

  /* Row CTAs */
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  /* Diff cards stack on tablet (too narrow for side-by-side) */
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .diff-vs {
    display: none;
  }

  /* Pillars: 2 columns */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 9 cards on 2-col → 1 orphan: center it */
  .pillars-grid .pillar-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ── Desktop ≥ 1024px: row CTAs (base diff-grid is already 1fr auto 1fr) ── */
@media (min-width: 1024px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}
