/* ============================================================
   ONNO AI — CLAUDE MASTER
   Warm premium system · Claude orange / cream / ink
   ============================================================ */

:root {
  --bg:          #F7F3ED;   /* cream */
  --bg-alt:      #F1E9DE;   /* sand-tinted */
  --sand:        #E9DED2;
  --card:        #FFFFFF;
  --card-warm:   #FFFDFB;

  --ink:         #191817;
  --text:        #191817;
  --muted:       #706A65;
  --muted-2:     #837C76;

  --accent:      #D97757;   /* Claude orange */
  --accent-deep: #B85C3D;   /* terracotta */
  --accent-text: #A85030;   /* darker orange for small text (AA) */
  --peach:       #F2C4B2;
  --peach-soft:  #FBE9E1;
  --blue:        #3767FF;   /* ONNO blue, rare accent */
  --on-accent:   #FFFFFF;

  --line:        rgba(217, 119, 87, 0.3);
  --line-soft:   rgba(25, 24, 23, 0.08);

  --radius:      20px;
  --radius-lg:   28px;
  --maxw:        1320px;
  --gut:         40px;

  --grad-accent: linear-gradient(135deg, #D97757 0%, #A85030 100%);
  --glow:        0 14px 30px -14px rgba(217, 119, 87, 0.45);
  --glow-lg:     0 22px 48px -16px rgba(217, 119, 87, 0.55);
  --shadow:      0 1px 2px rgba(25, 24, 23, 0.04), 0 18px 44px -22px rgba(25, 24, 23, 0.16);
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);

  --font-disp: "Archivo", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

/* ---------- Custom AI cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on { cursor: none; }
  body.cursor-on a, body.cursor-on button, body.cursor-on .module-head,
  body.cursor-on .faq-q, body.cursor-on input, body.cursor-on textarea,
  body.cursor-on [role="button"] { cursor: none; }
}
.snake-seg {
  position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none;
  z-index: 9998; transform: translate(-50%, -50%); will-change: transform;
  background: var(--accent); transition: opacity .3s;
}
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%); will-change: transform; transition: opacity .3s;
  box-shadow: 0 0 8px rgba(217, 119, 87, 0.6);
}
.cursor-head {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(217, 119, 87, 0.6); pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%); will-change: transform, width, height;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s;
}
.cursor-head.hot { width: 52px; height: 52px; background: rgba(217, 119, 87, 0.09); border-color: var(--accent); }
.cursor-head.down { width: 22px; height: 22px; background: rgba(217, 119, 87, 0.2); }
.cursor-head.hide, .cursor-dot.hide, .snake-seg.hide { opacity: 0; }

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

h1, h2, h3, h4, .disp {
  font-family: var(--font-disp);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
section { position: relative; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.accent { color: var(--accent); }
.grad-text { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Background ---------- */
.bg-base { position: fixed; inset: 0; z-index: -3; background:
  radial-gradient(70% 50% at 50% -5%, rgba(242, 196, 178, 0.3), transparent 62%),
  radial-gradient(55% 45% at 94% 108%, rgba(233, 222, 210, 0.55), transparent 60%),
  radial-gradient(38% 32% at 3% 62%, rgba(55, 103, 255, 0.045), transparent 65%); }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Eyebrow label ---------- */
.label { display: inline-flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent-text); }
.label::before { content: ""; width: 38px; height: 1.5px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-disp); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 100px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .26s, color .26s, border-color .26s;
  white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-3px); background: var(--accent-deep); box-shadow: var(--glow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(25, 24, 23, 0.2); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-text); }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0;
  transition: padding .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
/* blur lives on a pseudo so the fixed mobile panel isn't trapped by backdrop-filter's containing block */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(247, 243, 237, 0.85); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); transition: opacity .4s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line-soft); padding: 13px 0; }
.nav.scrolled::before { opacity: 1; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: baseline; gap: 7px; flex-shrink: 0; transition: opacity .25s; }
.brand:hover { opacity: 0.82; }
.brand .brand-img { height: 19px; width: auto; display: block; transform: translateY(2px);
  /* white PNG → near-black ink on the warm theme */
  filter: brightness(0) saturate(100%) invert(7%) sepia(6%) saturate(600%) hue-rotate(340deg) brightness(98%); }
.brand .brand-ai { font-family: "Quicksand", var(--font-disp); font-weight: 600; font-size: 21px;
  line-height: 1; color: var(--ink); letter-spacing: 0.01em; }
.nav.scrolled .brand .brand-img { height: 18px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 12.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); padding: 9px 13px; border-radius: 100px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(217, 119, 87, 0.08); }
.nav-links a.badge { position: relative; color: var(--ink); border: 1.5px solid var(--line); }
.nav-links a.badge::after { content: ""; position: absolute; top: 4px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px rgba(55, 103, 255, 0.7); animation: pulse 2s ease-in-out infinite; }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

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

/* soft vertical light beams, warm tones */
.beams { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent); }
.beam { position: absolute; top: -10%; height: 120%; width: 3px; border-radius: 4px; filter: blur(2px);
  opacity: 0.3; animation: beam 8s ease-in-out infinite; }
.beam.b1 { left: 14%;  background: linear-gradient(transparent, #E8B79F, transparent); animation-delay: 0s;   height: 130%; }
.beam.b2 { left: 24%;  background: linear-gradient(transparent, #D97757, transparent); animation-delay: .8s; }
.beam.b3 { left: 37%;  background: linear-gradient(transparent, #F2C4B2, transparent); animation-delay: 1.6s; width: 2px; }
.beam.b4 { left: 49%;  background: linear-gradient(transparent, #E9DED2, transparent); animation-delay: 2.2s; }
.beam.b5 { left: 61%;  background: linear-gradient(transparent, #3767FF, transparent); animation-delay: 1.1s; opacity: .18; }
.beam.b6 { left: 72%;  background: linear-gradient(transparent, #DBA183, transparent); animation-delay: 3s;   width: 2px; }
.beam.b7 { left: 83%;  background: linear-gradient(transparent, #D97757, transparent); animation-delay: .4s; }
.beam.b8 { left: 91%;  background: linear-gradient(transparent, #F2C4B2, transparent); animation-delay: 2.6s; height: 125%; }

.hero .wrap { position: relative; z-index: 3; width: 100%; }

/* corner brackets framing the hero block */
.hero-frame { position: relative; padding: 6px 0; }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none; }
.hero-frame::before { top: -8px; left: -22px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.hero-frame::after { bottom: -8px; right: 8%; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }

.hero .label { margin-bottom: 26px; }
.hero h1 { font-size: clamp(46px, 10.5vw, 150px); font-weight: 800; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 30px; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .1s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .22s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .34s; }
.hero h1 .cursor { display: inline-block; width: 5px; height: 0.82em; background: var(--accent);
  margin-left: 10px; vertical-align: baseline; transform: translateY(8%); animation: blink 1.05s steps(1) infinite; }

.sparkle { position: absolute; color: var(--accent); animation: spin 12s linear infinite; filter: drop-shadow(0 0 10px rgba(217, 119, 87, 0.6)); }
.sparkle svg { width: 100%; height: 100%; }
.sparkle.s1 { top: 20%; right: 12%; width: 34px; height: 34px; }
.sparkle.s2 { bottom: 30%; right: 4%; width: 16px; height: 16px; animation-duration: 9s; color: var(--blue);
  filter: drop-shadow(0 0 10px rgba(55, 103, 255, 0.5)); }

.hero-lead { max-width: 440px; }
.hero-lead p { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* stats */
.stats { border-top: 1px solid var(--line-soft); margin-top: 60px; padding-top: 30px;
  display: grid; grid-template-columns: repeat(4, auto); gap: 60px; }
.stat .n { font-family: var(--font-disp); font-weight: 800; font-size: clamp(34px, 4vw, 52px); color: var(--accent-deep); line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

/* hero 2-column with portrait */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-main { min-width: 0; }
.hero .hero-grid h1 { font-size: clamp(36px, 5.2vw, 76px); margin-bottom: 26px; }
.hero .hero-grid .hero-lead { max-width: 520px; }
.hero-visual { position: relative; perspective: 1100px; }
.hero-visual::after { content: ""; position: absolute; inset: -6% -6% -10%; z-index: -1; border-radius: 34px;
  background: radial-gradient(circle at 55% 45%, rgba(217, 119, 87, 0.3), transparent 68%);
  filter: blur(34px); opacity: 0.7; animation: glowPulse 6s ease-in-out infinite; pointer-events: none; }
.portrait-card { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--line); background:
    radial-gradient(120% 90% at 60% 0%, rgba(217, 119, 87, 0.22), #EBDFD2 70%);
  box-shadow: 0 40px 90px -32px rgba(25, 24, 23, 0.4), var(--glow);
  will-change: transform; transform: translateZ(0); transform-origin: center; }
.portrait-card.js-portrait { opacity: 0; }
.portrait-card.pc-introing { animation: pcReveal 1.15s var(--ease) forwards; }
.portrait-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  transition: transform .6s var(--ease); }
.portrait-card:hover img { transform: scale(1.04); }
/* sweeping light shine */
.portrait-card .pc-shine { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; border-radius: inherit; }
.portrait-card .pc-shine::before { content: ""; position: absolute; top: -40%; left: -30%; width: 36%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(9deg) translateX(-260%); animation: shineSweep 6.5s ease-in-out infinite; animation-delay: 1.2s; }
.portrait-card .pc-fallback { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.portrait-card .pc-fallback .ini { font-family: var(--font-disp); font-weight: 800; font-size: 130px; color: var(--accent); opacity: .5; }
.portrait-card .pc-glow { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(25, 24, 23, 0.7) 100%); }
.portrait-card .pc-frame { position: absolute; inset: 14px; z-index: 4; pointer-events: none; border-radius: 16px; }
.portrait-card .pc-frame::before, .portrait-card .pc-frame::after { content: ""; position: absolute; width: 30px; height: 30px; }
.portrait-card .pc-frame::before { top: 0; left: 0; border-left: 2px solid rgba(255,255,255,0.75); border-top: 2px solid rgba(255,255,255,0.75); }
.portrait-card .pc-frame::after { bottom: 0; right: 0; border-right: 2px solid rgba(255,255,255,0.75); border-bottom: 2px solid rgba(255,255,255,0.75); }
.portrait-card .pc-badge { position: absolute; left: 18px; bottom: 18px; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); color: var(--ink);
  font-family: var(--font-disp); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.portrait-card .pc-badge .d { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px rgba(55, 103, 255, 0.7); }

/* final contact */
.contact-final { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.contact-cta h3 { font-size: clamp(28px, 4vw, 46px); text-transform: uppercase; margin-bottom: 18px; }
.contact-cta p { color: var(--muted); font-size: 17px; max-width: 460px; margin-bottom: 32px; }
.icon-socials { display: flex; align-items: center; gap: 16px; }
.icon-socials a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-soft); color: var(--ink); position: relative; background: var(--card);
  transition: transform .3s var(--ease), border-color .3s, background .3s, color .3s, box-shadow .3s; }
.icon-socials a svg { width: 24px; height: 24px; }
.icon-socials a.tg { background: var(--accent); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.icon-socials a.tg:hover { transform: translateY(-5px) scale(1.05); box-shadow: var(--glow-lg); }
.icon-socials a.ig:hover { transform: translateY(-5px); border-color: var(--blue); color: var(--blue); }
.icon-socials .hint { margin-left: 6px; font-size: 13.5px; color: var(--muted-2); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.sec { padding: 130px 0; position: relative; }
.sec-alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 64px; }
.sec-head .ht { max-width: 880px; }
.sec-head .label { margin-bottom: 22px; }
.sec-title { font-size: clamp(40px, 8vw, 110px); font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.02em; }
.sec-title.sm { font-size: clamp(32px, 5.4vw, 72px); line-height: 0.98; }
.sec-sub { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 22px; }

/* ============================================================
   ROADMAP — ONNO Web Hero swings between stages
   ============================================================ */
.rm-sec { padding: 110px 0 120px; overflow: hidden;
  background:
    radial-gradient(56% 46% at 50% 0%, rgba(242, 196, 178, 0.38), transparent 70%),
    radial-gradient(40% 36% at 88% 100%, rgba(233, 222, 210, 0.5), transparent 65%),
    var(--bg); }
/* almost invisible paper grid */
.rm-sec::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 24, 23, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 24, 23, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(85% 85% at 50% 42%, #000, transparent);
  -webkit-mask-image: radial-gradient(85% 85% at 50% 42%, #000, transparent); }
.rm-sec .sec-title.rm-title { font-size: clamp(30px, 4.4vw, 60px); text-transform: none; line-height: 1.05; }

.roadmap { position: relative; display: grid; grid-template-columns: repeat(8, 1fr);
  grid-template-rows: auto 176px auto; column-gap: 14px; margin-top: 10px; }
.rm-track { grid-row: 2; grid-column: 1 / -1; position: relative; min-height: 176px; }
.rm-track svg { position: absolute; inset: 0; overflow: visible; }

/* editorial cards */
.rm-card { background: var(--card-warm); border: 1px solid rgba(25, 24, 23, 0.08); border-radius: 26px;
  padding: 20px 18px 19px; position: relative;
  box-shadow: 0 1px 2px rgba(25, 24, 23, 0.04), 0 14px 34px -18px rgba(25, 24, 23, 0.15), 0 30px 60px -34px rgba(184, 92, 61, 0.18);
  display: flex; flex-direction: column; gap: 12px;
  width: calc(100% + 44px); max-width: 236px; justify-self: center; }
.rm-card:nth-child(odd)  { grid-row: 1; align-self: end; margin-bottom: 14px; }
.rm-card:nth-child(even) { grid-row: 3; align-self: start; margin-top: 14px; }
.rm-card:nth-child(1) { grid-column: 1; } .rm-card:nth-child(2) { grid-column: 2; }
.rm-card:nth-child(3) { grid-column: 3; } .rm-card:nth-child(4) { grid-column: 4; }
.rm-card:nth-child(5) { grid-column: 5; } .rm-card:nth-child(6) { grid-column: 6; }
.rm-card:nth-child(7) { grid-column: 7; } .rm-card:nth-child(8) { grid-column: 8; }

.rm-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg); color: var(--accent-deep); flex-shrink: 0; }
.rm-ic svg { width: 21px; height: 21px; }
.rm-week { display: inline-flex; width: max-content; padding: 5px 11px; border-radius: 100px;
  background: rgba(217, 119, 87, 0.1); color: var(--accent-text);
  font-family: var(--font-disp); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 8px; }
.rm-card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.28; letter-spacing: 0; }

.rm-card.rm-intensiv { background: var(--peach-soft); border-color: rgba(217, 119, 87, 0.55); }
.rm-card.rm-intensiv .rm-ic { background: rgba(217, 119, 87, 0.15); color: var(--accent-deep); }
.rm-card.rm-intensiv .rm-week { background: rgba(217, 119, 87, 0.16); }

/* hidden until the hero lands (JS mode only) */
.roadmap.rm-js .rm-card { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(7px);
  transition: opacity .78s var(--ease), transform .78s var(--ease), filter .78s var(--ease); }
.roadmap.rm-js .rm-card:nth-child(odd) { transform: translateY(-24px) scale(0.96); }
.roadmap.rm-running .rm-card { will-change: opacity, transform, filter; }
.roadmap.rm-js .rm-card.in { opacity: 1; transform: none; filter: none; }

/* SVG track pieces */
.rm-base { fill: none; stroke: rgba(25, 24, 23, 0.16); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }
.rm-prog { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.rm-node .rm-halo { fill: var(--card-warm); stroke: rgba(25, 24, 23, 0.16); stroke-width: 1.6;
  transition: stroke .45s var(--ease); transform-box: fill-box; transform-origin: center; }
.rm-node .rm-core { fill: var(--muted-2); transition: fill .45s var(--ease), transform .45s var(--ease);
  transform-box: fill-box; transform-origin: center; }
.rm-node.on .rm-halo { stroke: var(--accent); animation: nodePop .65s var(--ease) 1; }
.rm-node.on .rm-core { fill: var(--accent); transform: scale(1.25); }
.rm-node.rm-node-intensiv.on .rm-halo { stroke: var(--accent-deep); }
.rm-node.rm-node-intensiv.on .rm-core { fill: var(--accent-deep); }
@keyframes nodePop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* thin thread from an activated point toward its card */
.rm-tether { stroke: rgba(184, 92, 61, 0.38); stroke-width: 1.3; stroke-dasharray: 3 5;
  opacity: 0; transition: opacity .7s var(--ease); }
.rm-tether.on { opacity: 1; }

/* the web line the hero swings on */
.rm-web { fill: none; stroke: rgba(184, 92, 61, 0.5); stroke-width: 1.6; stroke-linecap: round;
  transition: opacity .18s ease; }
.rm-web.fade { opacity: 0; }

/* ONNO Web Hero */
.rm-hero .suit { fill: var(--accent); }
.rm-hero .limb { stroke: var(--accent); stroke-width: 3.6; fill: none; stroke-linecap: round; }
.rm-hero .graf { fill: #2A2724; }
.rm-hero .visor { fill: #2A2724; }
.rm-hero .tech { stroke: rgba(255, 255, 255, 0.48); stroke-width: 0.9; fill: none; stroke-linecap: round; }
.rm-hero .mark { fill: none; stroke: #fff; stroke-width: 1.1; }
.rm-hero .mark-dot { fill: var(--blue); }

/* roadmap — vertical (mobile / tablet) */
@media (max-width: 1024px) {
  .roadmap { grid-template-columns: 64px 1fr; grid-template-rows: none; column-gap: 16px; row-gap: 16px; }
  .rm-track { grid-column: 1; grid-row: 1 / 9; min-height: 0; }
  .rm-card, .rm-card:nth-child(odd), .rm-card:nth-child(even) { grid-column: 2; align-self: center;
    margin: 0; width: auto; max-width: none; justify-self: stretch; transform: none; }
  .rm-card:nth-child(1) { grid-row: 1; } .rm-card:nth-child(2) { grid-row: 2; }
  .rm-card:nth-child(3) { grid-row: 3; } .rm-card:nth-child(4) { grid-row: 4; }
  .rm-card:nth-child(5) { grid-row: 5; } .rm-card:nth-child(6) { grid-row: 6; }
  .rm-card:nth-child(7) { grid-row: 7; } .rm-card:nth-child(8) { grid-row: 8; }
  .rm-card { flex-direction: row; align-items: center; gap: 15px; padding: 16px 18px; border-radius: 22px; }
  .roadmap.rm-js .rm-card, .roadmap.rm-js .rm-card:nth-child(odd) { transform: translateX(24px) scale(0.96); }
  .roadmap.rm-js .rm-card.in { transform: none; }
  .rm-card h3 { font-size: 15px; }
  .rm-week { margin-bottom: 6px; }
}

/* ============================================================
   CLAUDE MASTER STATEMENT
   ============================================================ */
.master { padding: 110px 0; }
.master-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 70px 60px;
  border: 1px solid rgba(25, 24, 23, 0.2); background: linear-gradient(135deg, #262220, #191817 65%); }
.master-card::after { content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.3), transparent 65%); }
.master-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.45fr 1fr; gap: 50px; align-items: center; }
.master .label { color: var(--peach); }
.master .label::before { background: var(--peach); }
.master h2 { font-size: clamp(44px, 7vw, 96px); text-transform: uppercase; margin: 18px 0 20px; color: #fff; }
.master h2 .grad-text { background: linear-gradient(135deg, #EFA184, #D97757); -webkit-background-clip: text; background-clip: text; }
.master p { color: #C9C0B8; font-size: 16.5px; margin-bottom: 28px; max-width: 540px; }
.master-points { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.master-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: #DDD5CD; }
.master-points .tk { flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff; margin-top: 1px; }
.master-points .tk svg { width: 13px; height: 13px; }
.master-points b { color: #fff; }
.master-bonus { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.master-bonus .mb-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #A79E96; margin-right: 4px; }
.master-bonus .mb-chip { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 100px;
  color: #F2EBE4; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.master-burst { display: grid; place-items: center; }
.master-burst svg { width: 240px; height: 240px; animation: spin 34s linear infinite; filter: drop-shadow(0 0 44px rgba(217, 119, 87, 0.45)); }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar { position: relative; overflow: hidden; padding: 38px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--card); min-height: 270px;
  display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { border-color: var(--line); transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar .p-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pillar .p-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(217, 119, 87, 0.12); color: var(--accent-deep); }
.pillar:nth-child(2) .p-ic { background: rgba(55, 103, 255, 0.09); color: var(--blue); }
.pillar:nth-child(3) .p-ic { background: var(--peach-soft); color: var(--accent-deep); }
.pillar:nth-child(4) .p-ic { background: var(--bg-alt); color: var(--ink); }
.pillar .p-ic svg { width: 28px; height: 28px; }
.pillar .p-num { font-family: var(--font-disp); font-weight: 800; font-size: 22px; color: var(--muted-2); }
.pillar h3 { font-size: 27px; text-transform: uppercase; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 15px; margin-bottom: auto; }
.pillar .p-tag { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-text); }

/* ============================================================
   CURRICULUM — 6 modules, lesson rows
   ============================================================ */
.mod-group { margin-bottom: 54px; }
.mg-head { display: flex; align-items: center; gap: 24px; padding-bottom: 24px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft); }
.mg-num { font-family: var(--font-disp); font-weight: 800; font-size: clamp(46px, 6vw, 76px);
  line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.mg-titles { flex: 1; min-width: 0; }
.mg-title { font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; line-height: 1.05; }
.mg-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.mg-meta { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mg-week { font-family: var(--font-disp); font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text); padding: 7px 14px;
  border: 1px solid rgba(217, 119, 87, 0.4); border-radius: 100px; background: rgba(217, 119, 87, 0.08); }
.mg-count { font-family: var(--font-disp); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  padding: 9px 16px; border: 1px solid var(--line-soft); border-radius: 100px; background: var(--card); }
.mg-lessons { display: flex; flex-direction: column; gap: 10px; }

#dastur .lesson-row { position: relative; display: flex; gap: 22px; align-items: flex-start;
  padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--card);
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease),
              border-color .3s ease, box-shadow .3s ease, background .3s ease; }
#dastur .lesson-row.in { opacity: 1; transform: none; }
#dastur .lesson-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  border-radius: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
#dastur .lesson-row:hover { border-color: var(--line); background: linear-gradient(100deg, rgba(217, 119, 87, 0.06), var(--card) 60%); box-shadow: var(--shadow); }
#dastur .lesson-row:hover::before { transform: scaleY(1); }
.lr-num { flex-shrink: 0; font-family: var(--font-disp); font-weight: 800; font-size: 22px; min-width: 40px;
  color: var(--muted-2); transition: color .3s; }
#dastur .lesson-row:hover .lr-num { color: var(--accent-deep); }
.lr-body { flex: 1; min-width: 0; }
.lr-body h4 { font-family: var(--font-disp); font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.lr-body p { color: var(--muted); font-size: 14.5px; }
.lr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.lr-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 100px;
  color: var(--accent-text); background: rgba(217, 119, 87, 0.08); border: 1px solid rgba(217, 119, 87, 0.25); }
.lr-arrow { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted-2); border: 1px solid var(--line-soft); transition: .3s var(--ease); align-self: center; }
#dastur .lesson-row:hover .lr-arrow { color: #fff; background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.lr-arrow svg { width: 16px; height: 16px; }

/* special stages: 0 hafta + intensiv */
.mod-special { display: flex; gap: 20px; align-items: center; padding: 24px 28px; margin-bottom: 54px;
  border-radius: var(--radius); border: 1px dashed rgba(217, 119, 87, 0.45);
  background: rgba(217, 119, 87, 0.05); }
.mod-special .ms-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(217, 119, 87, 0.12); color: var(--accent-deep); }
.mod-special .ms-ic svg { width: 24px; height: 24px; }
.mod-special .ms-tag { display: inline-block; font-family: var(--font-disp); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.mod-special h3 { font-size: 20px; margin-bottom: 4px; }
.mod-special p { color: var(--muted); font-size: 14.5px; }
.mod-special.ms-strong { border-style: solid; border-color: rgba(217, 119, 87, 0.6); background: var(--peach-soft); }

/* ============================================================
   PORTFOLIO / PROJECTS
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-soft);
  background: var(--card); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.proj:hover { border-color: var(--line); transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-vis { aspect-ratio: 16/11; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(217, 119, 87, 0.14), #EFE6DA); display: grid; place-items: center; }
.proj-vis .pemoji { font-size: 60px; filter: grayscale(0.1) drop-shadow(0 8px 24px rgba(25, 24, 23, 0.25)); transition: transform .5s var(--ease); }
.proj:hover .proj-vis .pemoji { transform: scale(1.12) rotate(-4deg); }
/* spotlight reveal */
@property --spot { syntax: "<length>"; inherits: true; initial-value: 0px; }
.proj-vis .pemoji { z-index: 1; }
.proj-vis .proj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  --spot: 0px; opacity: 0; filter: brightness(0.98) saturate(1.05) contrast(1.02);
  -webkit-mask-image: radial-gradient(circle var(--spot) at var(--mx, 50%) var(--my, 50%), #000 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(circle var(--spot) at var(--mx, 50%) var(--my, 50%), #000 0%, #000 40%, transparent 100%);
  transition: --spot .3s var(--ease), opacity .28s ease; }
.proj:has(.proj-img):hover .proj-vis .proj-img { --spot: 92px; opacity: 1; }
/* warm ring that follows the cursor */
.proj-vis::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(circle 115px at var(--mx, 50%) var(--my, 50%), rgba(217, 119, 87, 0.15), transparent 58%); }
.proj:has(.proj-img):hover .proj-vis::before { opacity: 1; }
.proj-vis .ptag { z-index: 5; }
/* per-card focus so faces land in the frame */
.proj-grid .proj:nth-child(1) .proj-img { object-position: 50% 30%; }
.proj-grid .proj:nth-child(2) .proj-img { object-position: 50% 24%; }
.proj-grid .proj:nth-child(3) .proj-img { object-position: 50% 16%; }
.proj-grid .proj:nth-child(4) .proj-img { object-position: 50% 30%; }
.proj-grid .proj:nth-child(5) .proj-img { object-position: 50% 34%; }
.proj-grid .proj:nth-child(6) .proj-img { object-position: 50% 42%; }
/* hover hint chip */
.proj-vis .phint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line-soft); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-disp); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.proj-vis .phint svg { width: 13px; height: 13px; color: var(--accent-deep); }
.proj:hover .proj-vis .phint { opacity: 0; transform: translateX(-50%) translateY(8px); }
/* touch: no hover — reveal photo fully */
@media (hover: none), (pointer: coarse) {
  .proj:has(.proj-img) .proj-vis .proj-img { --spot: 1400px; opacity: 1; }
  .proj:has(.proj-img) .proj-vis .pemoji, .proj:has(.proj-img) .proj-vis .phint { opacity: 0; }
}
.proj-vis .ptag { position: absolute; top: 16px; left: 16px; font-family: var(--font-disp); font-weight: 800;
  font-size: 13px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(25, 24, 23, 0.5); }
.proj-body { padding: 24px 26px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.proj-body h3 { font-size: 21px; text-transform: uppercase; line-height: 1.05; margin-bottom: 8px; }
.proj-body .meta { font-size: 13px; color: var(--muted); font-family: var(--font-body); text-transform: none; }
.proj-arrow { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-soft);
  display: grid; place-items: center; color: var(--muted); transition: .3s var(--ease); }
.proj:hover .proj-arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }
.proj-arrow svg { width: 18px; height: 18px; }

/* ============================================================
   PRICING — single offline plan
   ============================================================ */
.plan-solo { max-width: 620px; margin: 0 auto; }
.plan { position: relative; padding: 48px 44px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft);
  background: var(--card); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-5px); box-shadow: var(--glow-lg); }
.plan.featured { border-color: rgba(217, 119, 87, 0.45); box-shadow: var(--glow); }
.plan .ribbon { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px; font-family: var(--font-disp); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; background: var(--accent); color: #fff; box-shadow: var(--glow); white-space: nowrap; }
.plan .ribbon svg { width: 14px; height: 14px; }
.plan-name { font-family: var(--font-disp); font-weight: 800; font-size: 34px; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 8px; }
.plan-name .pn-ic { color: var(--accent); }
.plan-name .pn-ic svg { width: 28px; height: 28px; }
.plan-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; text-align: center; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.plan-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.plan-feats .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(217, 119, 87, 0.15);
  color: var(--accent-deep); display: grid; place-items: center; margin-top: 1px; }
.plan-feats .ck svg { width: 12px; height: 12px; }
.price-main { padding: 24px; border-radius: 16px; margin-bottom: 12px; text-align: center;
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.1), rgba(242, 196, 178, 0.2)); border: 1px solid rgba(217, 119, 87, 0.3); }
.price-main .amt { font-family: var(--font-disp); font-weight: 800; font-size: 44px; color: var(--accent-deep); line-height: 1; }
.price-main .amt small { font-size: 17px; color: var(--muted); font-weight: 500; }
.price-main .note { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.price-alt { padding: 16px 22px; border-radius: 14px; border: 1px solid var(--line-soft); margin-bottom: 10px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-alt .amt { font-family: var(--font-disp); font-weight: 800; font-size: 23px; line-height: 1; color: var(--ink); }
.price-alt .amt small { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.price-alt .note { font-size: 13px; color: var(--muted); }
.plan .btn { width: 100%; margin-top: 20px; }

/* ============================================================
   MENTOR
   ============================================================ */
.mentor-card { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; align-items: center;
  padding: 56px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.06), var(--card) 55%); box-shadow: var(--shadow); }
.mentor-logo { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.mentor-logo::after { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.2), transparent 70%); filter: blur(10px); }
.mentor-logo .big-burst { position: relative; z-index: 2; width: 72%; height: 72%;
  animation: spin 30s linear infinite; filter: drop-shadow(0 0 34px rgba(217, 119, 87, 0.4)); }
.mentor-info h2 { font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; margin: 16px 0 6px; }
.mentor-info .role { color: var(--accent-text); font-weight: 600; margin-bottom: 20px; }
.mentor-info p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: rgba(217, 119, 87, 0.45); box-shadow: var(--shadow); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px;
  cursor: pointer; font-family: var(--font-disp); font-weight: 700; font-size: 18px; color: var(--ink); }
.faq-q .fic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-soft);
  display: grid; place-items: center; color: var(--accent-deep); transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.faq-item.open .fic { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-q .fic svg { width: 15px; height: 15px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 28px 24px; color: var(--muted); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line-soft); padding: 50px 0; background: var(--card); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-copy { color: var(--muted-2); font-size: 13px; }

/* ============================================================
   REVEAL + MISC
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; } .reveal.d4 { transition-delay: .36s; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad-accent); box-shadow: 0 0 12px rgba(217, 119, 87, 0.55); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.25); } }
@keyframes rise { to { transform: none; } }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
@keyframes beam { 0%,100% { opacity: .16; transform: scaleY(0.85); } 50% { opacity: .4; transform: scaleY(1.05); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pcReveal { from { opacity: 0; filter: blur(16px) brightness(1.12) saturate(1.15); } to { opacity: 1; filter: none; } }
@keyframes shineSweep { 0% { transform: rotate(9deg) translateX(-260%); } 45%, 100% { transform: rotate(9deg) translateX(820%); } }
@keyframes glowPulse { 0%,100% { opacity: 0.5; transform: scale(0.97); } 50% { opacity: 0.85; transform: scale(1.04); } }
/* touch devices: gentle CSS-only float (no JS tilt) */
@media (hover: none), (pointer: coarse) {
  .portrait-card { animation: floaty 7s ease-in-out infinite; }
  .portrait-card.js-portrait { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) { :root { --gut: 28px; } .stats { gap: 36px; } }
/* nav collapses into the burger panel early: 7 links don't fit below this */
@media (max-width: 1180px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 10px; padding: 36px; background: rgba(247, 243, 237, 0.98);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line-soft); z-index: 90; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 17px; padding: 11px 14px; width: 100%; letter-spacing: 0.1em; }
  .nav-links a.badge::after { top: 12px; right: 14px; }
  .burger { display: flex; z-index: 95; }
}
@media (max-width: 920px) {
  .master-inner, .mentor-card { grid-template-columns: 1fr; gap: 30px; }
  .master-burst svg { width: 180px; height: 180px; }
  .mentor-logo { max-width: 190px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { width: min(100%, 380px); justify-self: center; }
  .contact-final { grid-template-columns: 1fr; gap: 32px; }
  body.cursor-on { cursor: auto; }
}

/* ---------- MOBILE / PHONE ---------- */
@media (max-width: 760px) {
  /* nav */
  .nav { padding: 13px 0; }
  .nav.scrolled { padding: 9px 0; }
  .brand .brand-img { height: 17px; }
  .brand .brand-ai { font-size: 19px; }
  .nav-cta .btn:not(.burger) { display: none; }

  /* spacing + type scale */
  .sec { padding: 68px 0; }
  .sec-head { margin-bottom: 38px; gap: 18px; }
  .sec-title { font-size: clamp(30px, 10vw, 46px); }
  .sec-title.sm { font-size: clamp(26px, 8vw, 40px); }
  .sec-sub { font-size: 15.5px; }
  .label { font-size: 11.5px; letter-spacing: 0.22em; }
  .label::before { width: 26px; }

  /* hero */
  .hero { padding: 104px 0 54px; min-height: auto; }
  .hero-frame::before, .hero-frame::after { display: none; }
  .hero .label { margin-bottom: 18px; }
  .hero .hero-grid h1 { font-size: clamp(36px, 12vw, 56px); margin-bottom: 18px; }
  .hero-lead p { font-size: 15.5px; margin-bottom: 22px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding: 15px 14px; font-size: 14.5px; }
  .hero-visual { width: min(100%, 320px); }
  .portrait-card { aspect-ratio: 1 / 1; }
  .portrait-card .pc-fallback .ini { font-size: 80px; }
  .sparkle.s1 { right: 6%; width: 26px; height: 26px; }
  .sparkle.s2 { display: none; }

  /* stats */
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; margin-top: 42px; padding-top: 24px; }
  .stat .n { font-size: 34px; }
  .stat .l { font-size: 12.5px; }

  /* roadmap */
  .rm-sec { padding: 64px 0 72px; }
  .rm-sec .sec-title.rm-title { font-size: clamp(24px, 7.4vw, 34px); }

  /* master */
  .master { padding: 64px 0; }
  .master-card { padding: 32px 22px; border-radius: 22px; }
  .master-card::after { width: 280px; height: 280px; right: -90px; top: -90px; }
  .master h2 { font-size: clamp(40px, 13vw, 64px); margin: 14px 0 16px; }
  .master p { font-size: 15px; margin-bottom: 22px; }
  .master-points li { font-size: 14.5px; }
  .master-burst { order: -1; }
  .master-burst svg { width: 110px; height: 110px; }
  .master-bonus { gap: 9px; margin-top: 24px; padding-top: 20px; }
  .master-bonus .mb-label { width: 100%; margin: 0 0 2px; }
  .master-bonus .mb-chip { font-size: 12.5px; padding: 8px 13px; }

  /* pillars */
  .pillar { padding: 26px 22px; min-height: 0; }
  .pillar .p-top { margin-bottom: 20px; }
  .pillar h3 { font-size: 23px; }
  .pillar p { font-size: 14.5px; }

  /* curriculum */
  .mod-group { margin-bottom: 38px; }
  .mg-head { gap: 14px 16px; flex-wrap: wrap; padding-bottom: 18px; }
  .mg-num { font-size: 44px; }
  .mg-title { font-size: clamp(20px, 6.4vw, 28px); }
  .mg-sub { font-size: 14px; }
  .mg-meta { order: 3; flex-direction: row; align-items: center; }
  .mg-week { padding: 6px 12px; font-size: 11px; }
  .mg-count { padding: 7px 13px; font-size: 12px; }
  #dastur .lesson-row { padding: 18px; gap: 14px; }
  .lr-num { font-size: 18px; min-width: 28px; }
  .lr-body h4 { font-size: 17px; }
  .lr-body p { font-size: 14px; }
  .lr-arrow { display: none; }
  .lr-tags { gap: 6px; margin-top: 11px; }
  .lr-tag { font-size: 11px; padding: 4px 10px; }
  .mod-special { padding: 18px; gap: 14px; margin-bottom: 38px; }
  .mod-special h3 { font-size: 18px; }

  /* projects */
  .proj-grid { grid-template-columns: 1fr; gap: 14px; }
  .proj-vis { aspect-ratio: 16 / 9; }
  .proj-vis .pemoji { font-size: 50px; }
  .proj-body { padding: 20px 22px 24px; }
  .proj-body h3 { font-size: 19px; }

  /* mentor */
  .mentor-card { padding: 30px 22px; gap: 8px; }
  .mentor-logo { max-width: 120px; }
  .mentor-info h2 { font-size: clamp(30px, 10vw, 44px); }
  .mentor-info p { font-size: 15px; }

  /* pricing */
  .plan { padding: 34px 22px; border-radius: 22px; }
  .plan-name { font-size: 28px; }
  .price-main { padding: 20px; }
  .price-main .amt { font-size: 34px; }
  .price-alt { padding: 14px 16px; }
  .price-alt .amt { font-size: 20px; }

  /* faq */
  .faq-q { padding: 18px 20px; font-size: 15.5px; }
  .faq-a p { padding: 0 20px 20px; }

  /* contact */
  .contact-final { gap: 28px; }
  .contact-cta h3 { font-size: clamp(26px, 9vw, 40px); }
  .contact-cta p { font-size: 15.5px; margin-bottom: 26px; }
  .icon-socials { gap: 14px; flex-wrap: wrap; }
  .icon-socials a { width: 54px; height: 54px; }
  .icon-socials .hint { font-size: 12.5px; width: 100%; margin: 4px 0 0; }

  /* footer */
  .foot { flex-direction: column; text-align: center; gap: 18px; }
  .foot-copy { font-size: 12.5px; }
}

/* ---------- SMALL PHONES ---------- */
@media (max-width: 400px) {
  :root { --gut: 18px; }
  .hero .hero-grid h1 { font-size: 36px; }
  .sec-title { font-size: 30px; }
  .master h2 { font-size: 42px; }
  .stats { gap: 18px 12px; }
  .stat .n { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; flex: none; }
  .roadmap { grid-template-columns: 52px 1fr; column-gap: 12px; }
  .rm-card { padding: 13px 14px; }
  .rm-ic { width: 36px; height: 36px; border-radius: 11px; }
  .rm-ic svg { width: 18px; height: 18px; }
  .rm-card h3 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
  .roadmap.rm-js .rm-card, .roadmap.rm-js .rm-card:nth-child(odd) { opacity: 1; transform: none; filter: none; }
}
