:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #14b8a6;
  --accent: #f97316;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe4ef;
  --success: #15803d;
  --danger: #dc2626;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 30rem),
    var(--bg);
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 239, 0.8);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.09);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-dark);
  font-weight: 800;
}

.hero h1,
.page-title {
  margin: 1rem 0;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.page-subtitle {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  color: var(--primary);
  background: #fff;
  border-color: var(--border);
}

.btn-danger {
  color: #fff;
  background: #ef4444;
}

.showcase-card,
.card,
.tool-card,
.panel {
  border: 1px solid rgba(219, 228, 239, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.showcase-card {
  padding: 1.4rem;
}

.profile-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 28px;
  border: 4px solid #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stat {
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-soft);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--primary-dark);
}

.section {
  padding: 44px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section h2,
.tool-page h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.5);
}

.tool-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(20, 184, 166, 0.16));
  font-size: 1.55rem;
}

.tool-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.15rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  margin-top: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 190px auto;
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
}

.input,
.select {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.tool-page {
  padding: 42px 0 64px;
}

.calculator {
  width: min(720px, 100%);
  margin: 1.5rem auto 0;
  padding: clamp(1.1rem, 4vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.field label {
  color: var(--text);
  font-weight: 800;
}

.result-box {
  min-height: 56px;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
  line-height: 1.6;
}

.result-box.success {
  color: var(--success);
}

.result-box.error {
  color: var(--danger);
  background: #fff1f2;
}

.result-list {
  text-align: left;
  display: inline-block;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding: 0.55rem 0.7rem;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid,
  .two-column,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.theme-toggle {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.textarea {
  min-height: 220px;
  resize: vertical;
}

.timer-display {
  display: grid;
  place-items: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 1.25rem auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(20, 184, 166, 0.18));
  border: 10px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.subject-row {
  display: grid;
  grid-template-columns: 1fr 110px 130px auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.kpi {
  padding: 1rem;
  border-radius: 16px;
  background: var(--surface-soft);
}

.kpi strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

html[data-theme="dark"] {
  --bg: #020617;
  --surface: #0f172a;
  --surface-soft: #111c31;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #25324a;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 30rem),
    var(--bg);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .footer {
  background: rgba(2, 6, 23, 0.86);
}

html[data-theme="dark"] .showcase-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .theme-toggle {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .btn-secondary {
  background: rgba(15, 23, 42, 0.92);
}

html[data-theme="dark"] .subject-row {
  background: rgba(2, 6, 23, 0.42);
}

@media (max-width: 760px) {
  .subject-row {
    grid-template-columns: 1fr;
  }
}

.icon-svg {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
}

.tool-icon .icon-svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.theme-toggle .icon-svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

.site-header {
  animation: slideDown 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .eyebrow,
.hero h1,
.hero p,
.hero-actions,
.page-title,
.page-subtitle,
.search-panel,
.calculator {
  animation: fadeUp 750ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1,
.page-title {
  animation-delay: 90ms;
}

.hero p,
.page-subtitle {
  animation-delay: 170ms;
}

.hero-actions,
.search-panel {
  animation-delay: 250ms;
}

.showcase-card {
  animation: floatIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both, softFloat 5.5s ease-in-out 1s infinite;
}

.tool-card {
  opacity: 0;
  animation: cardIn 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.logo-mark {
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55), transparent 70%);
  transform: translateX(-120%) rotate(20deg);
  animation: shine 3.8s ease-in-out infinite;
}

.gradient-text {
  background-size: 180% 180%;
  animation: gradientMove 5s ease infinite;
}

.btn-primary {
  background-size: 180% 180%;
  animation: gradientMove 6s ease infinite;
}

.input,
.select,
.result-box,
.kpi,
.subject-row {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.input:hover,
.select:hover,
.subject-row:hover,
.kpi:hover {
  transform: translateY(-1px);
}

.result-box.success {
  animation: pulseResult 420ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shine {
  0%, 45% {
    transform: translateX(-120%) rotate(20deg);
  }
  75%, 100% {
    transform: translateX(120%) rotate(20deg);
  }
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulseResult {
  0% {
    transform: scale(0.99);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Attraction layer: animated spotlight, mesh and premium glass effects */
body {
  position: relative;
  overflow-x: hidden;
  --mouse-x: 50%;
  --mouse-y: 20%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(640px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.18), transparent 42%),
    radial-gradient(420px circle at 15% 80%, rgba(249, 115, 22, 0.12), transparent 48%),
    radial-gradient(480px circle at 86% 18%, rgba(20, 184, 166, 0.16), transparent 48%);
  transition: background 120ms linear;
}

body::after {
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  animation: gridDrift 18s linear infinite;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.65;
}

.hero::before {
  width: 220px;
  height: 220px;
  left: max(1rem, calc((100vw - 1120px) / 2));
  top: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.16));
  animation: blobOne 9s ease-in-out infinite;
}

.hero::after {
  width: 160px;
  height: 160px;
  right: max(1rem, calc((100vw - 1120px) / 2));
  bottom: 2rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(37, 99, 235, 0.13));
  animation: blobTwo 8s ease-in-out infinite;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.dashboard-preview {
  width: min(420px, 100%);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.54));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(22px);
  transform: rotateY(-8deg) rotateX(5deg);
  animation: previewFloat 7s ease-in-out infinite;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem 0.9rem;
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.75;
}

.window-dots span:nth-child(2) { background: var(--secondary); }
.window-dots span:nth-child(3) { background: var(--accent); }

.preview-title {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.preview-hero-card {
  padding: 1.1rem;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b8a6, #7c3aed);
  background-size: 190% 190%;
  animation: gradientMove 7s ease infinite;
}

.preview-hero-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.preview-hero-card span {
  opacity: 0.9;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.mini-tool {
  min-height: 92px;
  padding: 0.85rem;
  border: 1px solid rgba(219, 228, 239, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  animation: miniPulse 3.8s ease-in-out infinite;
}

.mini-tool:nth-child(2) { animation-delay: 0.35s; }
.mini-tool:nth-child(3) { animation-delay: 0.7s; }
.mini-tool:nth-child(4) { animation-delay: 1.05s; }

.mini-tool .icon-svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.mini-tool b {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.mini-tool span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.orbit-ring {
  position: absolute;
  inset: 2rem;
  border: 1px dashed rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  animation: orbitSpin 22s linear infinite;
}

.orbit-item {
  position: absolute;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 228, 239, 0.95);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  animation: counterSpin 22s linear infinite;
}

.orbit-item .icon-svg {
  width: 26px;
  height: 26px;
}

.orbit-item:nth-child(1) { left: 50%; top: -29px; transform: translateX(-50%); }
.orbit-item:nth-child(2) { right: -29px; top: 50%; transform: translateY(-50%); }
.orbit-item:nth-child(3) { left: 50%; bottom: -29px; transform: translateX(-50%); }
.orbit-item:nth-child(4) { left: -29px; top: 50%; transform: translateY(-50%); }

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 228, 239, 0.95);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.13);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.floating-chip .icon-svg {
  width: 17px;
  height: 17px;
  color: var(--secondary);
}

.chip-one { left: 0; top: 20%; animation: chipFloat 4.8s ease-in-out infinite; }
.chip-two { right: 0; bottom: 18%; animation: chipFloat 5.6s ease-in-out 0.4s infinite; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.feature-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

@keyframes blobOne {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 48% 52% 58% 42%; }
  50% { transform: translate(28px, 26px) scale(1.08); border-radius: 58% 42% 46% 54%; }
}

@keyframes blobTwo {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 52% 48% 42% 58%; }
  50% { transform: translate(-24px, -22px) scale(1.12); border-radius: 42% 58% 55% 45%; }
}

@keyframes previewFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-3deg) rotateX(2deg) translateY(-14px); }
}

@keyframes miniPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes counterSpin {
  to { rotate: -360deg; }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

html[data-theme="dark"] .dashboard-preview,
html[data-theme="dark"] .floating-chip,
html[data-theme="dark"] .orbit-item,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .mini-tool {
  background: rgba(15, 23, 42, 0.86);
  border-color: var(--border);
}

html[data-theme="dark"] .dashboard-preview {
  border-color: rgba(148, 163, 184, 0.2);
}

@media (max-width: 960px) {
  .hero-stage {
    min-height: 470px;
  }

  .orbit-ring {
    inset: 0.5rem;
  }
}

@media (max-width: 760px) {
  .hero-stage {
    min-height: auto;
    padding: 2.5rem 0 0.5rem;
  }

  .dashboard-preview {
    transform: none;
    animation: fadeUp 750ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .orbit-ring,
  .floating-chip {
    display: none;
  }

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

/* Creator photo restoration + polished animated profile card */
.creator-preview {
  position: relative;
  overflow: hidden;
}

.creator-preview::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24), transparent 68%);
  animation: blobOne 8s ease-in-out infinite;
}

.creator-photo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0.35rem 0 1rem;
}

.creator-photo {
  width: min(220px, 62vw);
  height: min(220px, 62vw);
  object-fit: cover;
  border-radius: 36px;
  border: 6px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.28);
  animation: photoFloat 5.6s ease-in-out infinite;
}

.creator-status {
  position: absolute;
  right: clamp(0.2rem, 7vw, 2.4rem);
  bottom: -0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
  animation: chipFloat 4.5s ease-in-out infinite;
}

.creator-status .icon-svg {
  width: 16px;
  height: 16px;
}

.creator-preview .preview-topbar,
.creator-preview .preview-hero-card,
.creator-preview .preview-grid,
.creator-preview .stats {
  position: relative;
  z-index: 1;
}

@keyframes photoFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.notes-panel {
  width: min(980px, 100%);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.check-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.two-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roadmap-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-soft);
}

@media (max-width: 760px) {
  .notes-grid,
  .two-list {
    grid-template-columns: 1fr;
  }
}

/* Pomodoro completion celebration */
.session-complete {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.session-complete.is-open {
  opacity: 1;
  pointer-events: auto;
}

.complete-card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.92), rgba(20, 184, 166, 0.88)),
    rgba(15, 23, 42, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(24px) scale(0.96);
}

.session-complete.is-open .complete-card {
  animation: celebrationCard 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.complete-card h2 {
  margin: 0.8rem 0 0.45rem;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.07em;
}

.complete-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.complete-card .actions {
  justify-content: center;
}

.complete-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 18px 36px rgba(0,0,0,0.18);
}

.complete-icon .icon-svg {
  width: 44px;
  height: 44px;
}

.timer-display.timer-complete {
  animation: timerCelebrate 900ms ease-in-out 3;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 220% 220%;
}

.confetti-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-field span {
  position: absolute;
  top: -12%;
  width: 12px;
  height: 22px;
  border-radius: 4px;
  background: var(--primary);
  opacity: 0;
}

.session-complete.is-open .confetti-field span {
  animation: confettiFall 1.9s ease-in-out forwards;
}

.confetti-field span:nth-child(1) { left: 8%; background: #60a5fa; animation-delay: 0ms; }
.confetti-field span:nth-child(2) { left: 16%; background: #2dd4bf; animation-delay: 110ms; }
.confetti-field span:nth-child(3) { left: 25%; background: #f97316; animation-delay: 35ms; }
.confetti-field span:nth-child(4) { left: 34%; background: #a78bfa; animation-delay: 180ms; }
.confetti-field span:nth-child(5) { left: 44%; background: #22c55e; animation-delay: 70ms; }
.confetti-field span:nth-child(6) { left: 52%; background: #38bdf8; animation-delay: 230ms; }
.confetti-field span:nth-child(7) { left: 61%; background: #f59e0b; animation-delay: 20ms; }
.confetti-field span:nth-child(8) { left: 69%; background: #14b8a6; animation-delay: 150ms; }
.confetti-field span:nth-child(9) { left: 77%; background: #818cf8; animation-delay: 80ms; }
.confetti-field span:nth-child(10) { left: 84%; background: #fb7185; animation-delay: 210ms; }
.confetti-field span:nth-child(11) { left: 91%; background: #06b6d4; animation-delay: 120ms; }
.confetti-field span:nth-child(12) { left: 96%; background: #84cc16; animation-delay: 260ms; }

@keyframes celebrationCard {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  65% { opacity: 1; transform: translateY(-8px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes timerCelebrate {
  0%, 100% { transform: scale(1); background-position: 0% 50%; }
  50% { transform: scale(1.04); background-position: 100% 50%; }
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(115vh) rotate(720deg); }
}
