:root {
  --ink: #0c222c;
  --ink-soft: #3d5a66;
  --paper: #ffffff;
  --paper-deep: #eef3f4;
  --surface: #f7fafb;
  --panel: #ffffff;
  --accent: #0f6e62;
  --accent-hover: #0b5a50;
  --accent-soft: rgba(15, 110, 98, 0.12);
  --line: rgba(12, 34, 44, 0.12);
  --danger: #b42318;
  --header-bg: rgba(255, 255, 255, 0.9);
  --body-glow-a: rgba(15, 110, 98, 0.12);
  --body-glow-b: rgba(12, 34, 44, 0.06);
  --hero-scrim: linear-gradient(105deg, rgba(8, 28, 36, 0.88) 0%, rgba(8, 28, 36, 0.55) 48%, rgba(8, 28, 36, 0.28) 100%);
  --font-display: "Sora", sans-serif;
  --font-body: "Karla", sans-serif;
  --radius: 12px;
  --shadow-soft: 0 18px 40px rgba(12, 34, 44, 0.08);
  --header-h: 72px;
  --max: 1120px;
  --narrow: 720px;
  --theme-toggle-bg: #0c222c;
  --theme-toggle-fg: #ffffff;
}

html[data-theme="dark"] {
  --ink: #eef3f4;
  --ink-soft: #a8bcc4;
  --paper: #000000;
  --paper-deep: #0a1216;
  --surface: #0c1418;
  --panel: #111a1f;
  --accent: #2bb8a4;
  --accent-hover: #3dccb7;
  --accent-soft: rgba(43, 184, 164, 0.16);
  --line: rgba(238, 243, 244, 0.14);
  --danger: #f97066;
  --header-bg: rgba(0, 0, 0, 0.88);
  --body-glow-a: rgba(43, 184, 164, 0.1);
  --body-glow-b: rgba(255, 255, 255, 0.04);
  --hero-scrim: linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 48%, rgba(0, 0, 0, 0.4) 100%);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --theme-toggle-bg: #ffffff;
  --theme-toggle-fg: #0c222c;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--body-glow-a), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, var(--body-glow-b), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 40%, var(--paper) 100%);
  line-height: 1.55;
  transition: background 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, .hero-brand, .brand-mark span {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 650;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

.narrow {
  width: min(100%, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  --nav-solid: 0;
  transition: background 0.2s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, color 0.2s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

/* Landing hero: readable nav over image, then solid bar on scroll */
body.page-home .site-header:not(.is-scrolled) {
  background: rgba(0, 0, 0, calc(0.22 + (0.55 * var(--nav-solid))));
  backdrop-filter: blur(calc(2px + (10px * var(--nav-solid))));
  box-shadow: 0 1px 0 rgba(255, 255, 255, calc(0.08 * var(--nav-solid)));
}

body.page-home .site-header:not(.is-scrolled) .brand-mark,
body.page-home .site-header:not(.is-scrolled) .brand-mark span,
body.page-home .site-header:not(.is-scrolled) .nav-link {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.page-home .site-header:not(.is-scrolled) .nav-link:hover {
  color: #b8f0e6 !important;
}

body.page-home .site-header:not(.is-scrolled) .navbar-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

body.page-home .site-header.is-scrolled .brand-mark,
body.page-home .site-header.is-scrolled .brand-mark span,
body.page-home .site-header.is-scrolled .nav-link {
  text-shadow: none;
}

/* Side theme toggle */
.theme-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1100;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 0.65rem 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--theme-toggle-bg);
  color: var(--theme-toggle-fg);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-50%) translateX(-2px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle i {
  font-size: 1rem;
}

.theme-toggle-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1;
}

html[data-theme="light"] .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

@media (max-width: 640px) {
  .theme-toggle-label {
    display: none;
  }

  .theme-toggle {
    padding: 0.75rem 0.7rem;
  }
}

.site-nav {
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.site-nav-inner {
  display: flex;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-nav .nav-link {
  color: var(--ink-soft) !important;
  font-weight: 550;
  padding: 0.5rem 0.85rem !important;
}

.site-nav .nav-link:hover {
  color: var(--accent) !important;
}

.site-nav .navbar-toggler {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.65rem;
}

.site-nav .navbar-toggler:focus {
  box-shadow: none;
}

.nav-cta {
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .nav-cta {
    margin-top: 0;
  }
}

/* Language selector */
.lang-nav-item {
  margin-left: 0.35rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  padding: 0.15rem 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 7.5rem;
  padding: 0.4rem 1.75rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d5a66' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem var(--accent-soft);
}

body.page-home .site-header:not(.is-scrolled) .lang-select {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 650;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: auto;
  white-space: nowrap;
}

.btn:focus,
.btn:active:focus {
  box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none !important;
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
  text-decoration: none !important;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn-lg {
  padding: 0.85rem 1.45rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.btn-block {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.text-link {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  border-bottom-color: transparent;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: hero-zoom 12s ease-out both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 760px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 760px);
}

.hero-brand {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.35rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  max-width: 18ch;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.anim-rise {
  animation: rise 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero .eyebrow,
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.page-lead {
  font-size: 1.15rem;
  max-width: 48ch;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head p,
.section-foot {
  margin-top: 0.5rem;
}

.section-intro {
  padding-top: 4.5rem;
}

.section-intro h2 {
  max-width: 18ch;
}

.section-intro p {
  font-size: 1.15rem;
  max-width: 52ch;
}

/* Home feature rail — interactive rows, not cards */
.feature-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-rail li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.feature-rail li a:hover {
  background: var(--accent-soft);
  padding-left: 0.65rem;
  color: inherit;
}

.feature-rail-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
}

.feature-rail-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-rail-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.feature-rail-copy span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.feature-rail-arrow {
  color: var(--accent);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.feature-rail li a:hover .feature-rail-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Split section */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split-copy p {
  font-size: 1.1rem;
  max-width: 40ch;
  margin-bottom: 1.25rem;
}

.split-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.split-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-visual:hover img {
  transform: scale(1.03);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

/* CTA */
.section-cta {
  padding-bottom: 5rem;
}

.cta-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--panel), var(--paper-deep));
  border: 1px solid var(--line);
}

.cta-panel h2 {
  margin-bottom: 0.5rem;
}

.cta-panel > p {
  margin-bottom: 1.25rem;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto;
}

.signup-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.signup-inline .form-control {
  flex: 1 1 220px;
  min-width: 0;
}

.form-control {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

.form-warning {
  color: var(--danger);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: center;
}

.form-warning span {
  display: block;
}

/* Features page blocks */
.feature-block {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.feature-block:first-child {
  padding-top: 0;
}

.feature-block:last-child {
  border-bottom: 0;
}

.feature-block-media {
  overflow: hidden;
  border-radius: var(--radius);
}

.feature-block-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
  filter: saturate(0.95);
}

.feature-block:hover .feature-block-media img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feature-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.15em;
  line-height: 1;
}
.feature-title .feature-icon{
    font-size:1em;
}
.feature-title-text {
    padding-left: 0.15rem;
}

.feature-block-copy p {
  font-size: 1.05rem;
  max-width: 40ch;
}

@media (min-width: 900px) {
  .feature-block {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }

  .feature-block.is-reverse .feature-block-media {
    order: 2;
  }
}

/* Plans — interaction containers */
.plans-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}

.plan {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.plan.is-highlighted {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 40%),
    var(--panel);
}

.plan-header h2 {
  margin-bottom: 0.35rem;
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 750;
  color: var(--ink);
  line-height: 1;
}

.plan-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan-desc {
  margin-bottom: 1.25rem;
}

.plan-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.plan-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  color: var(--ink);
}

.plan-list i {
  color: var(--accent);
  margin-top: 0.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-item h2 {
  font-size: 1.35rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Signup */
.signup-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.signup-fields {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .signup-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.signup-form .form-control {
  border-radius: 10px;
}

.signup-actions {
  margin-top: 1.5rem;
}

/* Privacy prose */
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose p {
  max-width: 62ch;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(12, 34, 44, 0.04));
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 32ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-rise,
  .hero-media,
  .feature-block-media img,
  .split-visual img {
    animation: none !important;
    transition: none !important;
  }
}
