:root {
  color-scheme: light;
  --bg: #f4f1ee;
  --bg-soft: #f7f4f1;
  --bg-deep: #efeae5;
  --ink: #2d2d2d;
  --accent: #b59f8a;
  --muted: #9a9a9a;
  --glow-accent: rgba(181, 159, 138, 0.12);
  --glow-ink: rgba(45, 45, 45, 0.04);
  --texture-opacity: 0.35;
  --logo-filter: none;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --header-h: 3.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1b1a;
  --bg-soft: #242220;
  --bg-deep: #141312;
  --ink: #f4f1ee;
  --accent: #b59f8a;
  --muted: #8a8580;
  --glow-accent: rgba(181, 159, 138, 0.14);
  --glow-ink: rgba(244, 241, 238, 0.04);
  --texture-opacity: 0.18;
  --logo-filter: invert(1) hue-rotate(180deg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bg-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, var(--glow-accent), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, var(--glow-ink), transparent 50%),
    linear-gradient(165deg, var(--bg-soft) 0%, var(--bg) 45%, var(--bg-deep) 100%);
  opacity: 1;
}

.bg-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--texture-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  flex-shrink: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}

.logo-link {
  display: flex;
  flex-shrink: 0;
}

.logo {
  display: block;
  height: 1.75rem;
  width: auto;
  filter: var(--logo-filter);
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.lang-btn:hover,
.lang-btn.is-active {
  color: var(--ink);
}

.lang-sep {
  color: var(--muted);
  opacity: 0.5;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: clamp(0.75rem, 2.5vh, 1.75rem) clamp(1.25rem, 4vw, 3rem);
  animation: fade-up 0.9s var(--ease) both;
}

.hero-logo {
  width: min(200px, 48vw);
  height: auto;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
  filter: var(--logo-filter);
}

.hero-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vh, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-subtitle {
  margin: clamp(0.5rem, 1.2vh, 0.85rem) 0 0;
  max-width: 36ch;
  font-size: clamp(0.875rem, 2vh, 1rem);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.cta-wrap {
  position: relative;
  display: inline-flex;
  margin-top: clamp(0.85rem, 2vh, 1.35rem);
}

.cta-wrap[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bg);
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.cta-wrap[data-tooltip]:hover::after,
.cta-wrap[data-tooltip]:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.cta:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cta.is-disabled,
.cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.features {
  flex-shrink: 0;
  padding: clamp(0.75rem, 2.5vh, 1.75rem) clamp(1.25rem, 4vw, 3rem);
}

.feature-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1100px;
  grid-template-columns: repeat(2, 1fr);
}

.feature {
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s var(--ease) forwards;
}

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

.feature:nth-child(2) {
  animation-delay: 0.15s;
}

.feature:nth-child(3) {
  animation-delay: 0.25s;
}

.feature:nth-child(4) {
  animation-delay: 0.35s;
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.feature p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.site-footer {
  flex-shrink: 0;
  padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.footer-brand {
  font-weight: 500;
  color: var(--ink);
}

.footer-dot {
  margin: 0 0.5rem;
  color: var(--muted);
}

.footer-studio {
  color: var(--accent);
  font-weight: 300;
}

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

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-height: 700px) {
  .hero-logo {
    width: min(150px, 40vw);
    margin-bottom: 0.5rem;
  }

  .feature-icon {
    margin-bottom: 0.4rem;
  }

  .feature-icon svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}
