@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Sora:wght@300;400;500;600&display=swap');

/* ============================
   RU. — STYLE
   Artistic · Turquoise · Smooth
   ============================ */

:root {
  --teal-deep:    #0a1f2e;
  --teal-dark:    #0d2b3e;
  --teal-mid:     #1a4a5c;
  --teal-core:    #2ab8c4;
  --teal-light:   #5dd6de;
  --teal-pale:    #a8eff3;
  --teal-ghost:   rgba(42, 184, 196, 0.08);
  --cream:        #f5f0e8;
  --cream-warm:   #ede8df;
  --text-main:    #e8f4f5;
  --text-muted:   rgba(232, 244, 245, 0.55);
  --text-dim:     rgba(232, 244, 245, 0.35);
  --border:       rgba(42, 184, 196, 0.15);
  --border-soft:  rgba(42, 184, 196, 0.08);
  --glass:        rgba(10, 31, 46, 0.7);
  --on-accent:    #0a1f2e;
  --surface-soft: rgba(13, 43, 62, 0.5);
  --surface-nav:  rgba(10, 31, 46, 0.97);
  --surface-foot: rgba(8, 20, 30, 0.6);
  --surface-drop: rgba(10, 31, 46, 0.95);
  --font-display: 'Sora', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --neon-cyan:    #66f5ff;
  --neon-blue:    #45a7ff;
  --glow-strong:  0 0 24px rgba(102, 245, 255, 0.28);
  --glow-soft:    0 0 18px rgba(69, 167, 255, 0.2);
  --bg-layer-1:   radial-gradient(circle at 15% -15%, rgba(69, 167, 255, 0.24), transparent 42%);
  --bg-layer-2:   radial-gradient(circle at 90% 8%, rgba(102, 245, 255, 0.16), transparent 35%);
  --bg-layer-3:   linear-gradient(150deg, #071724 0%, #0a1f2e 48%, #0e3044 100%);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

:root[data-theme="light"] {
  --teal-deep:    #f8fafb;
  --teal-dark:    #f3f7f9;
  --teal-mid:     #dceef3;
  --teal-core:    #00b8d4;
  --teal-light:   #0096b3;
  --teal-pale:    #00748a;
  --teal-ghost:   rgba(0, 184, 212, 0.08);
  --cream:        #ffffff;
  --cream-warm:   #fafbfc;
  --text-main:    #0f1419;
  --text-muted:   rgba(15, 20, 25, 0.65);
  --text-dim:     rgba(15, 20, 25, 0.45);
  --border:       rgba(0, 184, 212, 0.22);
  --border-soft:  rgba(0, 184, 212, 0.11);
  --glass:        rgba(255, 255, 255, 0.88);
  --on-accent:    #f5fafb;
  --surface-soft: rgba(255, 255, 255, 0.88);
  --surface-nav:  rgba(250, 251, 252, 0.98);
  --surface-foot: rgba(243, 247, 249, 0.96);
  --surface-drop: rgba(255, 255, 255, 0.96);
  --bg-layer-1:   radial-gradient(circle at 15% -15%, rgba(0, 184, 212, 0.14), transparent 42%);
  --bg-layer-2:   radial-gradient(circle at 90% 8%, rgba(69, 167, 255, 0.1), transparent 35%);
  --bg-layer-3:   linear-gradient(150deg, #f9fafb 0%, #f5f8fa 50%, #f0f5f8 100%);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-layer-1), var(--bg-layer-2), var(--bg-layer-3);
  color: var(--text-main);
  overflow-x: hidden;
  cursor: auto;
  opacity: 0;
  transition: background 0.45s var(--ease-smooth), color 0.45s var(--ease-smooth), opacity 0.6s var(--ease-smooth);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(102, 245, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 167, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 90%);
  opacity: 0.34;
  animation: gridDrift 26s linear infinite;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 50% -10%, rgba(102, 245, 255, 0.08), transparent 45%);
}
body.page-ready {
  opacity: 1;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(42px, 42px, 0); }
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 8px; height: 8px;
  background: var(--teal-core);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), background 0.3s;
  mix-blend-mode: screen;
  opacity: 0;
}
.cursor-follower {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 32px; height: 32px;
  border: 1px solid rgba(42, 184, 196, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-smooth), width 0.4s, height 0.4s, opacity 0.3s;
  opacity: 0;
}
.cursor.is-active,
.cursor-follower.is-active {
  opacity: 1;
}
.cursor.hover { width: 16px; height: 16px; }
.cursor-follower.hover { width: 56px; height: 56px; }

:root[data-theme="light"] .cursor {
  background: #00b8d4;
  mix-blend-mode: multiply;
  box-shadow: 0 0 12px rgba(0, 184, 212, 0.6);
}

:root[data-theme="light"] .cursor-follower {
  border-color: rgba(0, 184, 212, 0.4);
  box-shadow: inset 0 0 8px rgba(0, 184, 212, 0.2);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0, 184, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 167, 255, 0.06) 1px, transparent 1px);
  opacity: 0.42;
}

:root[data-theme="light"] body::after {
  background: radial-gradient(circle at 50% -10%, rgba(0, 184, 212, 0.06), transparent 45%);
}

body.no-custom-cursor {
  cursor: auto;
}
body.custom-cursor-enabled,
body.custom-cursor-enabled * {
  cursor: none !important;
}

body.dragging,
body.dragging * {
  cursor: auto !important;
}

body.dragging .cursor,
body.dragging .cursor-follower {
  opacity: 0 !important;
}

body.no-custom-cursor a,
body.no-custom-cursor button,
body.no-custom-cursor .btn-primary,
body.no-custom-cursor .btn-ghost,
body.no-custom-cursor .quiz-opt,
body.no-custom-cursor .faq-q,
body.no-custom-cursor .social-link,
body.no-custom-cursor .nav-toggle {
  cursor: pointer;
}

/* ── AMBIENT BACKGROUND ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal-core), transparent 70%);
  top: -150px; right: -100px;
  animation-duration: 22s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--teal-light), transparent 70%);
  bottom: 20%; left: -100px;
  animation-duration: 18s;
  animation-delay: -8s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #1a7a8a, transparent 70%);
  top: 50%; right: 10%;
  animation-duration: 26s;
  animation-delay: -14s;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background 0.4s var(--ease-smooth), padding 0.3s;
}
#navbar.scrolled {
  background: linear-gradient(135deg, rgba(7, 24, 35, 0.86), rgba(14, 47, 68, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(102, 245, 255, 0.2);
  box-shadow: 0 8px 24px rgba(1, 8, 14, 0.34);
}

:root[data-theme="light"] #navbar.scrolled {
  background: linear-gradient(135deg, rgba(248, 250, 251, 0.92), rgba(240, 245, 248, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 184, 212, 0.15);
  box-shadow: 0 8px 24px rgba(0, 184, 212, 0.08);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.9; }

.nav-logo img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
  position: relative;
  animation: navZeroGravity var(--nav-float-dur, 6.6s) ease-in-out infinite;
  animation-delay: var(--nav-float-delay, 0s);
  will-change: transform;
}
.nav-link::after {
  content: none;
  position: absolute;
  bottom: -3px; left: 10px;
  width: 0; height: 1px;
  background: var(--teal-core);
  transition: width 0.35s var(--ease-smooth);
}
.nav-link:hover {
  color: var(--neon-cyan);
  border-color: rgba(102, 245, 255, 0.5);
  background: rgba(102, 245, 255, 0.08);
  box-shadow: var(--glow-soft);
}
.nav-link.active {
  color: var(--text-main);
  border-color: var(--border);
}

.nav-links > li:nth-child(1) { --nav-float-dur: 6.4s; --nav-float-delay: -0.1s; }
.nav-links > li:nth-child(2) { --nav-float-dur: 7.1s; --nav-float-delay: -1.2s; }
.nav-links > li:nth-child(3) { --nav-float-dur: 6.7s; --nav-float-delay: -2.1s; }
.nav-links > li:nth-child(4) { --nav-float-dur: 7.6s; --nav-float-delay: -0.7s; }
.nav-links > li:nth-child(5) { --nav-float-dur: 6.2s; --nav-float-delay: -2.9s; }
.nav-links > li:nth-child(6) { --nav-float-dur: 7.3s; --nav-float-delay: -1.6s; }
.nav-links > li:nth-child(7) { --nav-float-dur: 6.9s; --nav-float-delay: -2.4s; }

@keyframes navZeroGravity {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  30% { transform: translate3d(1px, -2px, 0) rotate(-0.2deg); }
  60% { transform: translate3d(-1px, -4px, 0) rotate(0.2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
}

.nav-tool-btn {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(10, 31, 46, 0.64), rgba(15, 57, 79, 0.5));
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  cursor: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s var(--ease-bounce);
}

.nav-tool-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(102, 245, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}

:root[data-theme="light"] .nav-tool-btn {
  background: linear-gradient(160deg, rgba(240, 245, 248, 0.72), rgba(227, 240, 244, 0.6));
  border-color: rgba(0, 184, 212, 0.18);
  color: #0f1419;
}

:root[data-theme="light"] .nav-tool-btn:hover {
  border-color: #00b8d4;
  color: #00b8d4;
  background: rgba(0, 184, 212, 0.1);
  box-shadow: 0 0 16px rgba(0, 184, 212, 0.25);
}

/* Light Theme Buttons */
:root[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #00b8d4, #0096b3);
  color: #f5fafb;
  box-shadow: 0 4px 16px rgba(0, 184, 212, 0.3);
}

:root[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(120deg, #0096b3, #00d4e8);
  box-shadow: 0 14px 34px rgba(0, 184, 212, 0.4), 0 0 24px rgba(0, 184, 212, 0.35);
}

:root[data-theme="light"] .btn-ghost {
  border-color: rgba(0, 184, 212, 0.35);
  color: #0f1419;
}

:root[data-theme="light"] .btn-ghost:hover {
  border-color: #00b8d4;
  color: #00b8d4;
  background: rgba(0, 184, 212, 0.08);
  box-shadow: 0 0 20px rgba(0, 184, 212, 0.3);
}

/* Light Theme Cards */
:root[data-theme="light"] .card {
  background: linear-gradient(155deg, rgba(240, 245, 248, 0.85), rgba(230, 240, 244, 0.72));
  border: 1px solid rgba(0, 184, 212, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .card::before {
  background: linear-gradient(135deg, rgba(0, 184, 212, 0.08) 0%, transparent 60%);
}

:root[data-theme="light"] .card::after {
  background: linear-gradient(100deg, transparent 35%, rgba(0, 184, 212, 0.2) 48%, transparent 61%);
}

:root[data-theme="light"] .card:hover {
  border-color: rgba(0, 184, 212, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 30px rgba(0, 184, 212, 0.2), 0 0 20px rgba(0, 184, 212, 0.25);
}

:root[data-theme="light"] .card-featured {
  border-color: rgba(0, 184, 212, 0.4);
  background: linear-gradient(150deg, rgba(220, 238, 243, 0.8), rgba(207, 232, 239, 0.7));
}

:root[data-theme="light"] .card-number {
  color: #00b8d4;
  opacity: 0.15;
}

:root[data-theme="light"] .card-icon {
  color: #00b8d4;
}

:root[data-theme="light"] .card:hover .card-icon {
  color: #0096b3;
}

:root[data-theme="light"] .card-link {
  color: #00b8d4;
}

:root[data-theme="light"] .card-link:hover {
  color: #0096b3;
}

/* Light Theme Dropdown */
:root[data-theme="light"] .dropdown {
  box-shadow: 0 8px 24px rgba(0, 184, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .dropdown li a:hover {
  color: #00b8d4;
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 22px;
}

/* Keep dropdown trigger stable so hover does not break while floating animation runs. */
.has-dropdown > .nav-link {
  animation: none;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--surface-drop);
  color: var(--teal-core);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-smooth);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
}
.dropdown li a:hover { color: var(--teal-light); padding-left: 1.8rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle:focus-visible {
  outline: 1px solid var(--teal-core);
  outline-offset: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ── SHARED SECTION STYLES ── */
section {
  position: relative;
  z-index: 1;
  padding: 8rem 6rem;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 0 16px rgba(102, 245, 255, 0.3);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--teal-core);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 2rem;
}
.section-title em {
  font-style: italic;
  color: var(--teal-core);
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 3rem;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  filter: blur(6px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth), filter 0.65s var(--ease-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--teal-core);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 100px;
  border: none;
  cursor: none;
  transition: background 0.3s, transform 0.3s var(--ease-bounce), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before,
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.35) 50%, transparent 76%);
  transition: transform 0.6s var(--ease-smooth);
  z-index: -1;
}
.btn-primary:hover::before,
.btn-ghost:hover::before {
  transform: translateX(120%);
}
.btn-primary:hover {
  background: linear-gradient(120deg, var(--teal-core), var(--neon-blue));
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(42, 184, 196, 0.32), var(--glow-soft);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: none;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-bounce), background 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(102, 245, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: var(--glow-soft);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 6rem 6rem;
  overflow: hidden;
}
.hero-content { max-width: 640px; z-index: 2; }
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-core);
  margin-bottom: 2rem;
  transition-delay: 0.1s;
}

:root[data-theme="light"] .hero-eyebrow {
  color: #0096b3;
  opacity: 0.85;
}

:root[data-theme="light"] .section-label {
  color: #0096b3;
  opacity: 0.85;
  text-shadow: none;
}

:root[data-theme="light"] .section-label::before {
  background: #0096b3;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .italic { font-style: italic; color: var(--teal-light); }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 480px;
  transition-delay: 0.35s;
}
.hero-cta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  transition-delay: 0.5s;
}

/* Hero visual rings */
.hero-visual {
  position: absolute;
  right: 6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
}
.circle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--teal-core);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 6s ease-in-out infinite;
}
.ring-1 { width: 160px; height: 160px; opacity: 0.6; animation-delay: 0s; }
.ring-2 { width: 280px; height: 280px; opacity: 0.3; animation-delay: -2s; }
.ring-3 { width: 400px; height: 400px; opacity: 0.12; animation-delay: -4s; }
@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: inherit; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.05; }
}
.hero-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--teal-light);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--teal-core), 0 0 60px rgba(42,184,196,0.3);
  animation: dotGlow 3s ease-in-out infinite;
}
@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 20px var(--teal-core), 0 0 60px rgba(42,184,196,0.3); }
  50% { box-shadow: 0 0 30px var(--teal-light), 0 0 80px rgba(42,184,196,0.5); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 3rem; left: 6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--teal-core), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── EXPERIENCE / CARDS ── */
.experience {
  background: linear-gradient(180deg, transparent, rgba(26, 74, 92, 0.08) 50%, transparent);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.card {
  position: relative;
  padding: 2.8rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(18, 56, 79, 0.5), rgba(11, 32, 47, 0.78));
  backdrop-filter: blur(10px);
  transition: border-color 0.4s, transform 0.4s var(--ease-smooth), box-shadow 0.4s;
  overflow: hidden;
  transition-delay: 0s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,184,196,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card::after {
  content: '';
  position: absolute;
  inset: -120% 35% auto -35%;
  height: 260%;
  background: linear-gradient(100deg, transparent 35%, rgba(102, 245, 255, 0.25) 48%, transparent 61%);
  transform: rotate(16deg);
  opacity: 0;
  transition: transform 0.7s var(--ease-smooth), opacity 0.6s;
}
.card:hover {
  border-color: rgba(102, 245, 255, 0.42);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(42,184,196,0.1), var(--glow-soft);
}
.card:hover::before { opacity: 1; }
.card:hover::after {
  opacity: 1;
  transform: translateY(26%) rotate(16deg);
}
.card-featured {
  border-color: rgba(102, 245, 255, 0.42);
  background: linear-gradient(150deg, rgba(22, 74, 101, 0.62), rgba(14, 42, 59, 0.88));
}
.card-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--teal-core);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -1rem;
}
.card-icon {
  width: 52px; height: 52px;
  color: var(--teal-core);
  margin-bottom: 1.4rem;
  transition: color 0.3s, transform 0.4s;
}
.card:hover .card-icon { color: var(--teal-light); transform: scale(1.08); }
.card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.card-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.card-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--teal-core);
  transition: color 0.3s, letter-spacing 0.3s;
}
.card-link:hover { color: var(--teal-light); letter-spacing: 0.15em; }

/* ── HOW IT WORKS ── */
.how-it-works { max-width: 900px; margin: 0 auto; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
.step {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--teal-core);
  opacity: 0.4;
  line-height: 1;
  min-width: 50px;
  transition: opacity 0.3s;
}
.step:hover .step-num { opacity: 0.9; }
.step-body h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.step-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.step-connector {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--teal-core), transparent);
  margin-left: 24px;
  opacity: 0.3;
}

/* ── IS RU. FOR YOU? ── */
.for-you {
  background: linear-gradient(180deg, transparent, rgba(26,74,92,0.06), transparent);
  text-align: center;
}
.for-you .section-label, .for-you .section-title, .for-you .section-sub {
  margin-left: auto; margin-right: auto;
}
.for-you .section-label::before { display: none; }
.for-you .section-label { justify-content: center; }
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.quiz-inner { position: relative; min-height: 220px; }
.quiz-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
.quiz-step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}
.quiz-step.exit {
  opacity: 0;
  transform: translateX(-30px);
  position: absolute;
  pointer-events: none;
}
.quiz-q {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quiz-opt {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
  cursor: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.2s;
}
.quiz-opt:hover {
  border-color: var(--teal-core);
  color: var(--text-main);
  background: rgba(42,184,196,0.06);
  transform: translateX(4px);
}
.quiz-result {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.quiz-result.active { display: block; }
.result-icon {
  font-size: 2rem;
  color: var(--teal-core);
  margin-bottom: 1rem;
  animation: starSpin 3s linear infinite;
}
@keyframes starSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.quiz-result h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--teal-core);
}
.quiz-result p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.quiz-progress {
  margin-top: 2rem;
  height: 2px;
  background: rgba(42,184,196,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-bar {
  height: 100%;
  background: var(--teal-core);
  border-radius: 2px;
  transition: width 0.5s var(--ease-smooth);
  width: 0%;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 380px;
}
.about-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(42,184,196,0.2);
  animation: slowSpin 30s linear infinite;
}
@keyframes slowSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.about-ring::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(42,184,196,0.1);
}
.about-dot-grid {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 20px;
}
.about-dot-grid span {
  width: 4px; height: 4px;
  background: var(--teal-core);
  border-radius: 50%;
  opacity: 0.4;
  animation: dotBlink 4s ease-in-out infinite;
}
.about-dot-grid span:nth-child(2) { animation-delay: -0.5s; }
.about-dot-grid span:nth-child(3) { animation-delay: -1s; }
.about-dot-grid span:nth-child(4) { animation-delay: -1.5s; }
.about-dot-grid span:nth-child(5) { animation-delay: -2s; }
.about-dot-grid span:nth-child(6) { animation-delay: -2.5s; }
.about-dot-grid span:nth-child(7) { animation-delay: -3s; }
.about-dot-grid span:nth-child(8) { animation-delay: -3.5s; }
.about-dot-grid span:nth-child(9) { animation-delay: -4s; }
@keyframes dotBlink {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}
.about-photo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(42,184,196,0.35);
  box-shadow: 0 14px 38px rgba(10, 31, 46, 0.35);
  z-index: 2;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-note {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  z-index: 3;
}
.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

#about .about-grid {
  align-items: flex-start;
}

#about .about-visual-profile {
  position: sticky;
  top: 120px;
}

/* ── PRINCIPLES ── */
.principles {
  max-width: 900px;
  margin: 0 auto;
}
.principles-list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.principle {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: border-color 0.3s;
}
.principle:last-child { border-bottom: none; }
.principle:hover { border-color: var(--border); }
.p-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--teal-core);
  opacity: 0.5;
  min-width: 30px;
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.principle h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.principle p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── LEGAL PAGE ── */
.legal-page {
  max-width: 980px;
  margin: 0 auto;
}

.legal-content {
  margin-top: 3rem;
}

.legal-list {
  list-style: disc;
  margin: 0.8rem 0 1.1rem 1.4rem;
  color: var(--text-muted);
}

.legal-list li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ── FAQ ── */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-list { margin-top: 4rem; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  text-align: left;
  cursor: none;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--teal-light); }
.faq-icon {
  font-size: 1.4rem;
  color: var(--teal-core);
  transition: transform 0.4s var(--ease-smooth), color 0.3s;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--teal-light); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease-smooth), padding 0.3s;
}
.faq-a.open { max-height: 300px; padding-bottom: 1.5rem; }
.faq-a p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

/* ── CONTACT ── */
.contact-section { max-width: 760px; margin: 0 auto; }
.contact-form { margin-top: 3rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group {
  position: relative;
  margin-bottom: 1.2rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.2rem 0.5rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: none;
  resize: none;
}
.form-group select {
  padding: 0.9rem 1.2rem;
  appearance: none;
  cursor: none;
}
.form-group select option { background: var(--teal-dark); color: var(--text-main); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-core);
  box-shadow: 0 0 0 3px rgba(42,184,196,0.08);
}
.form-group label {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: top 0.25s, font-size 0.25s, color 0.25s;
}
.form-group textarea ~ label { top: 1.2rem; transform: none; }
.form-group input:not(:placeholder-shown) ~ label,
.form-group input:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label {
  top: 0.45rem;
  font-size: 0.7rem;
  color: var(--teal-core);
  transform: none;
}
.form-group select ~ label {
  top: -0.6rem;
  font-size: 0.7rem;
  color: var(--teal-core);
  background: var(--teal-deep);
  padding: 0 4px;
  left: 1rem;
  transform: none;
}
.form-success {
  display: none;
  color: var(--teal-light);
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: fadeUp 0.5s var(--ease-smooth) forwards;
}
.form-success.show { display: flex; align-items: center; gap: 0.5rem; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Light Theme Form Elements */
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
  border-color: rgba(0, 184, 212, 0.2);
}

:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus {
  border-color: #00b8d4;
  box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.12);
}

:root[data-theme="light"] .form-group select option {
  background: #f9fafb;
  color: #0f1419;
}

:root[data-theme="light"] .form-group label {
  color: rgba(15, 20, 25, 0.55);
}

:root[data-theme="light"] .form-group input:not(:placeholder-shown) ~ label,
:root[data-theme="light"] .form-group input:focus ~ label,
:root[data-theme="light"] .form-group textarea:not(:placeholder-shown) ~ label,
:root[data-theme="light"] .form-group textarea:focus ~ label {
  color: #00b8d4;
  background: #f8fafb;
}

:root[data-theme="light"] .form-group select ~ label {
  color: #00b8d4;
  background: #f8fafb;
}

/* Light Theme Quiz & FAQ */
:root[data-theme="light"] .quiz-opt {
  border-color: rgba(0, 184, 212, 0.2);
  color: rgba(15, 20, 25, 0.7);
}

:root[data-theme="light"] .quiz-opt:hover {
  border-color: #00b8d4;
  color: #0f1419;
  background: rgba(0, 184, 212, 0.08);
}

:root[data-theme="light"] .result-icon {
  color: #00b8d4;
}

:root[data-theme="light"] .faq-item {
  border-bottom-color: rgba(0, 184, 212, 0.12);
}

:root[data-theme="light"] .faq-q {
  color: #0f1419;
}

:root[data-theme="light"] .faq-q:hover {
  color: #00b8d4;
}

:root[data-theme="light"] .faq-icon {
  color: #00b8d4;
}

:root[data-theme="light"] .faq-q[aria-expanded="true"] .faq-icon {
  color: #0096b3;
}

/* Light Theme Footer */
:root[data-theme="light"] .footer {
  border-top-color: rgba(0, 184, 212, 0.15);
  background: linear-gradient(180deg, rgba(248, 250, 251, 0.85), rgba(243, 247, 249, 0.92));
}

:root[data-theme="light"] .footer-link {
  color: #0096b3;
}

:root[data-theme="light"] .footer-link:hover {
  color: #00b8d4;
}

:root[data-theme="light"] .social-link {
  border-color: rgba(0, 184, 212, 0.2);
  color: #00b8d4;
}

:root[data-theme="light"] .social-link:hover {
  background: rgba(0, 184, 212, 0.1);
  border-color: #00b8d4;
  box-shadow: 0 0 12px rgba(0, 184, 212, 0.25);
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.8rem 4rem 1.6rem;
  border-top: 1px solid rgba(102, 245, 255, 0.16);
  background: linear-gradient(180deg, rgba(7, 20, 31, 0.8), rgba(8, 24, 36, 0.95));
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.2rem;
  margin-bottom: 1.6rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--teal-light);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-brand p {
  font-size: 0.76rem;
  color: var(--text-dim);
}
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: start;
}
.footer-nav li {
  position: relative;
}
.footer-nav a {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: footerZeroGravity var(--float-dur, 7s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}
.footer-nav a:hover {
  color: var(--teal-light);
  border-color: var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-nav li:nth-child(1) a { --float-dur: 6.8s; --float-delay: -0.2s; }
.footer-nav li:nth-child(2) a { --float-dur: 7.4s; --float-delay: -1.4s; }
.footer-nav li:nth-child(3) a { --float-dur: 6.2s; --float-delay: -2.7s; }
.footer-nav li:nth-child(4) a { --float-dur: 8.1s; --float-delay: -0.9s; }
.footer-nav li:nth-child(5) a { --float-dur: 7.1s; --float-delay: -3.1s; }
.footer-nav li:nth-child(6) a { --float-dur: 6.6s; --float-delay: -1.8s; }
.footer-nav li:nth-child(7) a { --float-dur: 7.8s; --float-delay: -2.2s; }

@keyframes footerZeroGravity {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(2px, -3px, 0) rotate(-0.3deg); }
  50% { transform: translate3d(-1px, -6px, 0) rotate(0.2deg); }
  75% { transform: translate3d(-2px, -2px, 0) rotate(-0.2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}
.social-link:hover { color: var(--teal-light); transform: translateX(4px); }
.social-link svg { width: 14px; height: 14px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 130;
  background: rgba(102, 245, 255, 0.08);
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
  box-shadow: var(--glow-strong);
  transition: width 0.12s linear;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.footer-legal { display: flex; gap: 0.9rem; }
.footer-legal a { font-size: 0.74rem; }
.footer-legal a { transition: color 0.3s; }
.footer-legal a:hover { color: var(--teal-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  section { padding: 6rem 4rem; }
  .hero { padding: 10rem 4rem 6rem; }
  .hero-visual { right: 2rem; width: 320px; height: 320px; }
  .ring-3 { width: 300px; height: 300px; }
  .cards-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 250px; }
  .about-photo-wrap { width: 180px; height: 180px; }
  .about-photo-note { font-size: 0.72rem; }
  #about .about-visual-profile { position: relative; top: auto; }
  #navbar { padding: 1.4rem 3rem; }
  #navbar.scrolled { padding: 1rem 3rem; }
  .nav-logo img { height: 64px; }
  .footer { padding: 2.6rem 3rem 1.6rem; }
}

/* ── TABLET PORTRAIT (iPad mini / iPad) ── */
@media (min-width: 768px) and (max-width: 899px) {
  section { padding: 3.8rem 2.2rem; }

  .hero {
    min-height: auto;
    padding: 6.2rem 2.2rem 2.4rem;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { margin-bottom: 0.7rem; }
  .hero-title { font-size: clamp(2.3rem, 6vw, 3.1rem); margin-bottom: 0.8rem; line-height: 1.15; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 1.4rem; max-width: 90%; }
  .hero-cta { gap: 0.7rem; }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost { padding: 0.75rem 1.4rem; font-size: 0.8rem; }
  .hero-visual {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 220px;
    height: 220px;
    margin: 0.6rem auto 0;
  }
  .ring-1 { width: 120px; height: 120px; }
  .ring-2 { width: 170px; height: 170px; }
  .ring-3 { width: 220px; height: 220px; }
  .scroll-hint { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-visual { height: 200px; }
  .about-photo-wrap { width: 150px; height: 150px; }
  .section-title { font-size: clamp(1.95rem, 4.6vw, 2.6rem); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card { padding: 2rem 1.5rem; }
  .card:nth-child(3) { grid-column: span 2; max-width: 58%; margin: 0 auto; }

  .footer { padding: 2.1rem 2.2rem 1.2rem; }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.6rem;
    align-items: start;
  }
  .footer-nav ul { grid-template-columns: repeat(2, minmax(110px, 1fr)); row-gap: 0.45rem; }
  .footer-social {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .footer-bottom {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* ── TABLET LANDSCAPE (iPad / iPad Pro) ── */
@media (min-width: 900px) and (max-width: 1099px) {
  section { padding: 4.2rem 2.8rem; }

  .hero {
    min-height: 72vh;
    padding: 6.4rem 2.8rem 2.8rem;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-content { max-width: min(62%, 680px); }
  .hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.12; }
  .hero-sub { max-width: 95%; margin-bottom: 1.7rem; }
  .hero-visual {
    display: block;
    right: 1.2rem;
    top: 56%;
    width: 250px;
    height: 250px;
    transform: translateY(-50%);
  }
  .ring-1 { width: 135px; height: 135px; }
  .ring-2 { width: 195px; height: 195px; }
  .ring-3 { width: 250px; height: 250px; }
  .scroll-hint { display: none; }

  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 1.8rem; align-items: center; }
  .about-visual { height: 230px; }
  .section-title { font-size: clamp(2.05rem, 3.2vw, 2.9rem); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.05rem; }
  .card { padding: 2.1rem 1.7rem; }
  .card:nth-child(3) { grid-column: span 2; max-width: 54%; margin: 0 auto; }

  .footer { padding: 2.2rem 2.8rem 1.25rem; }
  .footer-top { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
  .footer-brand { flex: 0 0 auto; }
  .footer-nav { flex: 1 1 auto; }
  .footer-nav ul { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .footer-social { flex-direction: row; flex-wrap: wrap; gap: 0.55rem; }
  .footer-bottom { gap: 0.9rem; flex-wrap: wrap; }
}

/* ── TABLET NAV (iPad mini / iPad / iPad Pro) ── */
@media (min-width: 768px) and (max-width: 1099px) {
  #navbar,
  #navbar.scrolled {
    padding: 1rem 1.6rem;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-logo img { height: 56px; }
  .nav-toggle { display: flex; z-index: 230; }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(4, 14, 22, 0.42);
    z-index: 150;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(58vw, 430px);
    height: 100vh;
    z-index: 220;
    background: linear-gradient(160deg, rgba(7, 20, 31, 0.98), rgba(13, 42, 58, 0.96));
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.35s var(--ease-smooth);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    animation: none;
    font-size: 0.95rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(102, 245, 255, 0.18);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-link.active {
    border-color: rgba(102, 245, 255, 0.45);
    color: var(--neon-cyan);
  }

  .has-dropdown { width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0.45rem 0 0 1rem;
    min-width: 0;
  }

  .nav-tools {
    margin-top: 0.7rem;
    width: 100%;
  }

  .nav-tool-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  #navbar,
  #navbar.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(4, 14, 22, 0.42);
    z-index: 150;
  }

  section { padding: 5rem 2rem; }
  .hero { padding: 9rem 2rem 5rem; flex-direction: column; }
  .hero-visual { display: none; }
  .scroll-hint { left: 2rem; }
  #navbar { padding: 1.2rem 2rem; }
  #navbar.scrolled { padding: 0.9rem 2rem; }
  .nav-logo img { height: 52px; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    z-index: 180;
    background: linear-gradient(160deg, rgba(7, 20, 31, 0.98), rgba(13, 42, 58, 0.96));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2.5rem 2.5rem;
    gap: 1.2rem;
    transition: right 0.4s var(--ease-smooth);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-tools {
    margin-top: 0.7rem;
    width: 100%;
  }
  .nav-tool-btn {
    flex: 1;
    justify-content: center;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1rem; }
  .nav-link {
    animation: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(102, 245, 255, 0.16);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-link.active {
    border-color: rgba(102, 245, 255, 0.45);
    color: var(--neon-cyan);
  }
  .has-dropdown { width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0.5rem 0 0 1rem;
  }
  .nav-toggle { display: flex; z-index: 210; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 2.2rem 1.5rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 1.4rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-nav ul { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .footer-nav a { animation: none; }
  .quiz-container { padding: 2rem 1.5rem; }
  body::before { opacity: 0.18; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .reveal,
  .btn-primary,
  .btn-ghost,
  .card,
  .nav-link,
  .footer-nav a,
  .scroll-progress__bar {
    transition-duration: 0.01ms !important;
  }

  body::before,
  .orb,
  .hero-dot,
  .circle-ring,
  .about-ring,
  .about-dot-grid span,
  .nav-link,
  .footer-nav a {
    animation: none;
  }
}

@media (any-hover: none) and (any-pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  a,
  button,
  .btn-primary,
  .btn-ghost,
  .quiz-opt,
  .faq-q,
  .social-link,
  .nav-toggle {
    cursor: pointer;
  }
}

/* Light Theme Mobile Nav */
@media (max-width: 767px) {
  :root[data-theme="light"] .nav-links {
    background: linear-gradient(160deg, rgba(248, 250, 251, 0.97), rgba(240, 245, 248, 0.95));
    border-left-color: rgba(0, 184, 212, 0.15);
  }

  :root[data-theme="light"] .nav-link {
    color: #0f1419;
    background: rgba(0, 184, 212, 0.06);
    border-color: rgba(0, 184, 212, 0.2);
  }

  :root[data-theme="light"] .nav-link.active {
    border-color: rgba(0, 184, 212, 0.45);
    color: #00b8d4;
  }

  :root[data-theme="light"] body.nav-open::after {
    background: rgba(0, 184, 212, 0.08);
  }
}

/* Light Theme Tablet Nav */
@media (min-width: 768px) and (max-width: 1099px) {
  :root[data-theme="light"] .nav-links {
    background: linear-gradient(160deg, rgba(248, 250, 251, 0.97), rgba(240, 245, 248, 0.95));
    border-left-color: rgba(0, 184, 212, 0.15);
  }

  :root[data-theme="light"] .nav-link {
    color: #0f1419;
    background: rgba(0, 184, 212, 0.06);
    border-color: rgba(0, 184, 212, 0.2);
  }

  :root[data-theme="light"] .nav-link.active {
    border-color: rgba(0, 184, 212, 0.45);
    color: #00b8d4;
  }

  :root[data-theme="light"] body.nav-open::after {
    background: rgba(0, 184, 212, 0.08);
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--teal-deep); }
::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-core); }

/* ── SELECTION ── */
::selection { background: rgba(42,184,196,0.25); color: var(--teal-pale); }
