:root {
  color-scheme: light dark;
  --font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #f6f5f3;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-text: #0f172a;
  --color-muted: #4b5563;
  --color-accent: #0d9488;
  --color-accent-strong: #0f766e;
  --color-border: rgba(15, 23, 42, 0.1);
  --shadow-border: 0 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 25px 60px rgba(15, 23, 42, 0.15);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --section-gap: clamp(72px, 12vw, 120px);
  --container-max: min(1200px, 100% - 32px);
  --reveal-delay: 0s;
  --gradient-base-start: #f6f5f3;
  --gradient-base-end: #a9a9a9;
  --gradient-accent-start: #0ea5e9;
  --gradient-accent-end: #0d9488;
  --dynamic-gradient: linear-gradient(135deg, var(--gradient-base-start), var(--gradient-base-end));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(56px, 8vw, 120px);
}


body {
  font-family: var(--font-family);
  background: var(--dynamic-gradient);
  color: var(--color-text);
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease;
}

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

:root.theme-dark {
  color-scheme: dark;
  --color-bg: #020617;
  --color-surface: rgba(15, 23, 42, 0.82);
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --color-accent: #22d3ee;
  --color-accent-strong: #2dd4bf;
  --color-border: rgba(148, 163, 184, 0.22);
  --shadow-border: 0 0 0 1px rgba(148, 163, 184, 0.14);
  --shadow-soft: 0 25px 60px rgba(2, 6, 23, 0.65);
  --gradient-base-start: #020617;
  --gradient-base-end: #0f172a;
  --gradient-accent-start: #155e75;
  --gradient-accent-end: #0f766e;
  --dynamic-gradient: linear-gradient(135deg, var(--gradient-base-start), var(--gradient-base-end));
}

.scroll-indicator {
  position: sticky;
  top: 0;
  height: 4px;
  width: 100%;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  margin-bottom: 12px;
  overflow: hidden;
  z-index: 6;
}

:root.theme-dark .scroll-indicator {
  background: rgba(148, 163, 184, 0.18);
}

.scroll-indicator span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, #0ea5e9, #0d9488);
  transition: width 0.2s ease;
  will-change: width;
}

:root.theme-dark .scroll-indicator span {
  background: linear-gradient(120deg, #38bdf8, #14b8a6);
}

main {
  max-width: var(--container-max);
  margin: 0 auto;
}

body.is-locked {
  overflow: hidden;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 48px);
  position: sticky;
  top: 16px;
  z-index: 5;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-border), var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.site-nav {
  flex-grow: 1;
  justify-self: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 0.95rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-muted);
  transition: color 0.3s ease;
  will-change: color;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background-color: var(--color-surface);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.3s ease;
  will-change: top;
}

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

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* No mobile-specific styles needed */

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
}

.theme-toggle__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a, #fbbf24);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

:root.theme-dark .theme-toggle__icon {
  background: radial-gradient(circle, #1f2937, #0f172a);
  border-color: rgba(226, 232, 240, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-border), var(--shadow-soft);
  margin-bottom: var(--section-gap);
  align-items: start;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-strong);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 12px 0 18px;
}

.hero h1 span {
  display: block;
  color: var(--color-muted);
  font-weight: 400;
}

.hero__body {
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  line-height: 1.5;
  width: auto;
  will-change: transform, box-shadow;
}

.btn--primary {
  background: linear-gradient(120deg, #0ea5e9, #0d9488);
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}

:root.theme-dark .btn--ghost {
  border-color: rgba(148, 163, 184, 0.25);
}

.btn--read-blog {
  display: flex;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.btn--success {
  background: linear-gradient(120deg, #10b981, #059669);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.btn--error {
  background: linear-gradient(120deg, #ef4444, #dc2626);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.highlight-card,
.about-card,
.blog-card {
  will-change: transform, box-shadow;
}

.highlight-card:hover,
.about-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.hero__stat {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-border);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

:root.theme-dark .hero__stat {
  background: rgba(15, 23, 42, 0.65);
}

:root.theme-dark .hero,
:root.theme-dark .highlight-card,
:root.theme-dark .about-card,
:root.theme-dark .blog-card,
:root.theme-dark .blog__placeholder,
:root.theme-dark .article,
:root.theme-dark .article-cta,
:root.theme-dark .email-modal__content {
  background: var(--color-surface);
}

.hero__stats dt {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero__stats dd {
  margin-top: 6px;
  color: var(--color-muted);
}

.hero__panel {
  align-self: stretch;
  will-change: transform;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-border), var(--shadow-soft);
  backdrop-filter: blur(22px);
  height: 100%;
  position: relative;
  overflow: hidden;
  animation: floaty-card 8s ease-in-out infinite;
}

:root.theme-dark .glass-card {
  background: rgba(15, 23, 42, 0.75);
}

.glass-card__label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.tag-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--color-accent-strong);
  font-size: 0.85rem;
}

:root.theme-dark .tag-list li {
  background: rgba(20, 184, 166, 0.14);
}

.glass-card__checklist {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 16px 0 10px;
}

.glass-card__checklist li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

:root.theme-dark .glass-card__checklist li {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(20, 184, 166, 0.32);
}

.glass-card__checklist h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

:root.theme-dark .progress {
  background: rgba(148, 163, 184, 0.25);
}

.progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #0ea5e9, #0d9488);
  border-radius: inherit;
  animation: pulse-bar 3s ease-in-out infinite;
}

:root.theme-dark .progress__fill {
  background: linear-gradient(120deg, #38bdf8, #14b8a6);
}

.progress__label {
  font-size: 0.85rem;
  margin-top: 8px;
}

.glass-card__note {
  margin-top: 18px;
  font-size: 0.95rem;
}

.glass-card__note a {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.section {
  margin-bottom: var(--section-gap);
}

.section__intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.section__intro h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-accent-strong);
  margin-bottom: 12px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: var(--section-gap);
}

.highlight-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-border);
}

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

.about-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-border);
  min-height: 200px;
}

.blog__placeholder {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-border);
  font-size: 1.05rem;
  border: 1px dashed rgba(13, 148, 136, 0.35);
}

.blog__placeholder a {
  color: var(--color-accent-strong);
  font-weight: 600;
}

.blog {
  position: relative;
  z-index: 0;
}


.blog__list {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.blog-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-border);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.blog-card__meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  color: var(--color-accent-strong);
}

.blog-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.blog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.blog-article {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 32px;
}

.article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow-border), var(--shadow-soft);
  margin-bottom: var(--section-gap);
}

.article h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 18px;
}

.article h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article__author {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.article-cta {
  background: rgba(13, 148, 136, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-border);
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.85), rgba(14, 165, 233, 0.82));
  color: #fff;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}

[data-parallax] {
  will-change: transform;
  transition: transform 0.3s ease;
}

.contact p {
  color: rgba(255, 255, 255, 0.9);
}

.contact__content {
  min-width: 0;
}

.contact__note {
  min-width: 0;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.email-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.email-modal.is-open {
  display: flex;
}

.email-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}

.email-modal__content {
  position: relative;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 52px);
  width: min(480px, calc(100% - 32px));
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

.email-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--color-muted);
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.email-form label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-text);
}

.email-form input,
.email-form textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
}

:root.theme-dark .email-form input,
:root.theme-dark .email-form textarea {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}

.email-form__status {
  min-height: 1.3em;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 4px 0;
}

.email-form__notice {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.email-form__notice a {
  color: var(--color-accent);
  font-weight: 600;
}

.email-form__status.is-success {
  color: #0f766e;
}

.email-form__status.is-error {
  color: #dc2626;
}

.email-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  margin-top: clamp(32px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--color-muted);
  margin-left: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

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

[data-liquid] {
  --liquid-translate: 0px;
  --liquid-scale: 1;
  transform: translate3d(0, var(--liquid-translate), 0) scale(var(--liquid-scale));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  will-change: transform;
}

@keyframes floaty-card {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulse-bar {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: center;
    overflow-x: auto;
  }

  [data-liquid] {
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    padding: 12px;
  }

  .site-header {
    position: static;
    grid-template-columns: auto auto auto;
    gap: 8px;
    padding: 12px 16px;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .hero {
    padding: 24px;
    grid-template-columns: 1fr;
    margin-bottom: clamp(56px, 12vw, 96px);
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .glass-card {
    padding: 24px;
    animation: none;
    height: auto;
  }

  .section,
  .highlights {
    margin-bottom: clamp(48px, 10vw, 72px);
  }

  .about-card,
  .blog__placeholder {
    padding: 22px;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  [data-parallax] {
    transform: none !important;
  }
}

@media (max-width: 600px) {
  :root {
    --section-gap: clamp(56px, 12vw, 84px);
  }

  body {
    line-height: 1.5;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    max-width: fit-content;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero__stats dt {
    font-size: 1.6rem;
  }

  .tag-list {
    gap: 8px;
  }

  .blog__placeholder {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .theme-toggle__label {
    display: none;
  }

  body {
    padding: 10px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    padding: 10px 12px;
  }

  .nav-toggle {
    justify-self: end;
  }

  .site-nav {
    padding: 24px 16px;
  }

  .nav-close {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

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

  .glass-card,
  .contact {
    padding: 22px;
  }

  .site-footer {
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .site-nav ul {
    font-size: 1.05rem;
    gap: 14px;
  }

  .header-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-parallax] {
    transform: none !important;
  }

  [data-liquid] {
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Code block styling */
pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
  font-family: inherit;
}

/* Inline code styling */
p code {
  background: rgba(15, 23, 42, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-accent-strong);
}

:root.theme-dark p code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}
