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

:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --bg-2: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f8f5f0;
  --ink: #12161c;
  --muted: #5c6876;
  --accent: #ff6b2d;
  --accent-strong: #e4581f;
  --accent-2: #1c9e8e;
  --accent-3: #1f5bff;
  --accent-rgb: 255 107 45;
  --accent-2-rgb: 28 158 142;
  --border: rgba(18, 22, 28, 0.12);
  --border-strong: rgba(18, 22, 28, 0.2);
  --header-bg: rgba(246, 242, 236, 0.86);
  --header-border: rgba(18, 22, 28, 0.12);
  --footer-bg: rgba(18, 22, 28, 0.04);
  --shadow-sm: 0 8px 20px rgba(18, 22, 28, 0.08);
  --shadow-md: 0 22px 50px rgba(18, 22, 28, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --content-width: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --focus-ring: 0 0 0 3px rgb(var(--accent-rgb) / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1116;
    --bg-2: #0f151c;
    --surface: #141a22;
    --surface-2: #161e28;
    --ink: #f3f5f7;
    --muted: #b5bdc8;
    --accent: #ff8a4c;
    --accent-strong: #ff6b2d;
    --accent-2: #3bd0bb;
    --accent-3: #6aa2ff;
    --accent-rgb: 255 138 76;
    --accent-2-rgb: 59 208 187;
    --border: rgba(243, 245, 247, 0.16);
    --border-strong: rgba(243, 245, 247, 0.26);
    --header-bg: rgba(13, 17, 22, 0.8);
    --header-border: rgba(243, 245, 247, 0.12);
    --footer-bg: rgba(243, 245, 247, 0.06);
    --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 32px 70px rgba(0, 0, 0, 0.45);
    --focus-ring: 0 0 0 3px rgb(var(--accent-rgb) / 0.3);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgb(var(--accent-2-rgb) / 0.16), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgb(var(--accent-rgb) / 0.18), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(18, 22, 28, 0.08) 0.5px, transparent 0.5px);
  background-size: 26px 26px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

@media (prefers-color-scheme: dark) {
  body::before {
    background-image: radial-gradient(rgba(243, 245, 247, 0.12) 0.5px, transparent 0.5px);
    opacity: 0.15;
  }
}

main {
  flex: 1;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent-rgb) / 0.35);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: rgb(var(--accent-rgb) / 0.7);
}

:focus-visible {
  outline: 3px solid rgb(var(--accent-rgb) / 0.4);
  outline-offset: 3px;
}

h1,
h2,
h3,
.kicker,
.feature-kicker {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0;
  color: var(--muted);
}

p a {
  color: var(--accent-strong);
}

p a:hover {
  color: var(--accent);
}

ul.bullets,
ol.timeline {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

ul.bullets li {
  margin: 10px 0;
}

ol.timeline {
  list-style: none;
  padding-left: 0;
  margin-top: 22px;
}

ol.timeline li {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin: 14px 0;
}

ol.timeline h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

ol.timeline p {
  margin: 0;
}

.site-header {
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(18, 22, 28, 0.08);
}

.site-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-header a {
  text-decoration: none;
  color: inherit;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: inherit;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-nav a:hover {
  background: rgb(var(--accent-rgb) / 0.12);
  color: var(--ink);
}

.site-nav .nav-cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 12px 24px rgb(var(--accent-rgb) / 0.25);
}

.site-nav .nav-cta:hover {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-2));
  color: #ffffff;
}

.page,
.page-archive {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px var(--gutter) 88px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 50px);
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.18), rgb(var(--accent-rgb) / 0) 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fade-up 0.7s var(--ease) both;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 80% 20%, rgb(var(--accent-2-rgb) / 0.22), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.3), transparent 70%);
  pointer-events: none;
}

.banner > * {
  position: relative;
  z-index: 1;
}

.banner picture {
  order: 2;
}

.banner-text {
  order: 1;
}

.logo-svg {
  width: min(360px, 90%);
  justify-self: center;
  filter: drop-shadow(0 18px 40px rgba(18, 22, 28, 0.25));
}

.banner-text {
  display: grid;
  gap: 14px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 700;
}

.banner-text h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  line-height: 1.1;
}

.banner-text p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgb(var(--accent-rgb) / 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgb(var(--accent-rgb) / 0.28);
}

.container {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.7s var(--ease) both;
}

body:not(.home) .page > .container:first-of-type {
  background: linear-gradient(120deg, rgb(var(--accent-2-rgb) / 0.14), rgb(var(--accent-rgb) / 0) 55%), var(--surface);
  border-color: var(--border-strong);
}

.container h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.container h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

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

.card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 22, 28, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: fade-up 0.7s var(--ease) both;
}

.card::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  opacity: 0.7;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.grid .card:nth-child(1) {
  animation-delay: 0.05s;
}

.grid .card:nth-child(2) {
  animation-delay: 0.1s;
}

.grid .card:nth-child(3) {
  animation-delay: 0.15s;
}

.grid .card:nth-child(4) {
  animation-delay: 0.2s;
}

.grid .card:nth-child(5) {
  animation-delay: 0.25s;
}

.grid .card:nth-child(6) {
  animation-delay: 0.3s;
}

.contact {
  border-left: 4px solid rgb(var(--accent-rgb) / 0.45);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.contact-form button {
  justify-self: start;
}

@media (min-width: 720px) {
  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form .field {
    grid-column: span 2;
  }

  .contact-form button {
    grid-column: span 2;
  }

  .contact-form .field:nth-of-type(1),
  .contact-form .field:nth-of-type(2),
  .contact-form .field:nth-of-type(3) {
    grid-column: span 1;
  }
}

.contact-form .field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgb(var(--accent-rgb) / 0.7);
  box-shadow: var(--focus-ring);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .cf-turnstile {
  min-height: 65px;
}

.contact-form .form-note {
  margin: 0;
  color: var(--muted);
}

.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.form-status.success {
  border-color: rgba(0, 140, 90, 0.4);
  background: rgba(0, 140, 90, 0.08);
}

.form-status.error {
  border-color: rgba(190, 40, 20, 0.4);
  background: rgba(190, 40, 20, 0.08);
}

.form-status p {
  margin: 0 0 6px;
}

.form-status ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.feature-page .page {
  max-width: var(--content-width);
}

.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(140deg, rgb(var(--accent-2-rgb) / 0.18), rgb(var(--accent-rgb) / 0) 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fade-up 0.7s var(--ease) both;
}

.feature-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.28), transparent 70%);
  opacity: 0.9;
}

.feature-hero > * {
  position: relative;
  z-index: 1;
}

.feature-kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.feature-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  text-decoration: none;
}

.feature-back:hover {
  text-decoration: underline;
}

.feature-back-bottom {
  margin-top: 18px;
}

.feature-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.feature-copy p {
  margin: 0 0 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgb(var(--accent-rgb) / 0.08);
  font-weight: 600;
}

.feature-result {
  font-weight: 600;
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row span {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px rgba(18, 22, 28, 0.2);
}

.feature-placeholder {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 60%), var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: clamp(28px, 5vw, 60px) clamp(24px, 4vw, 48px);
  background: linear-gradient(120deg, rgb(var(--accent-2-rgb) / 0.16), rgb(var(--accent-rgb) / 0) 60%), var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: 22px var(--gutter) 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-weight: 600;
  color: inherit;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.lang-switch a {
  font-size: 0.85rem;
  opacity: 0.8;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.lang-switch a.active {
  opacity: 1;
  background: rgb(var(--accent-rgb) / 0.18);
}

@media (prefers-color-scheme: dark) {
  .lang-switch {
    background: rgba(20, 26, 34, 0.7);
  }

  .lang-switch a.active {
    background: rgb(var(--accent-rgb) / 0.25);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  .feature-hero,
  .banner {
    grid-template-columns: 1fr;
  }

  .feature-hero::after,
  .banner::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding: 14px 18px;
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
  }

  .site-logo {
    height: 54px;
  }

  .page,
  .page-archive {
    padding: 36px 18px 72px;
  }

  .banner-text h1 {
    font-size: clamp(2.1rem, 6vw, 2.6rem);
  }
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
