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

:root {
  --bg: #f6f2ed;
  --surface: #fffdfb;
  --border: #e8ddd3;
  --border-light: #f0e8e0;
  --text: #1a1e2c;
  --muted: #6b7280;
  --muted-soft: #9ca3af;
  --accent: #ff5a4f;
  --accent-deep: #de463e;
  --accent-glow: rgba(255, 90, 79, 0.12);
  --shadow-sm: 0 1px 3px rgba(26, 30, 44, 0.04), 0 1px 2px rgba(26, 30, 44, 0.03);
  --shadow-md: 0 4px 16px rgba(26, 30, 44, 0.06), 0 1px 4px rgba(26, 30, 44, 0.04);
  --shadow-lg: 0 12px 40px rgba(26, 30, 44, 0.08), 0 4px 12px rgba(26, 30, 44, 0.04);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max-width: 1040px;
  --transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

/* --- Page shell: flex column so footer sticks to bottom --- */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell > main {
  flex: 1;
}

/* --- Header --- */

.site-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 237, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.site-header:hover {
  border-bottom-color: var(--border-light);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Inter Tight", "Inter", sans-serif;
  letter-spacing: -0.03em;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.8;
}

.brand-accent {
  color: var(--accent-deep);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav > a:not(.button) {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Inter Tight", "Inter", sans-serif;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.main-nav > a:not(.button):hover,
.main-nav > a:not(.button).is-active {
  color: var(--text);
}

.main-nav > a:not(.button):hover::after,
.main-nav > a:not(.button).is-active::after {
  width: 100%;
}

/* --- Hero --- */

.hero-section {
  padding: 72px 0 48px;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-simple {
  max-width: 720px;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-simple h1,
.legal-intro-block h1 {
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-simple h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-left: auto;
  margin-right: auto;
}

.headline-dark {
  display: block;
  color: var(--text);
}

.headline-accent {
  display: block;
  color: var(--accent-deep);
}

.headline-muted {
  display: block;
  color: var(--muted);
}

.hero-text {
  max-width: 34rem;
  margin: 22px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

.text-strong {
  color: var(--text);
  font-weight: 600;
}

.text-accent {
  color: var(--accent-deep);
  font-weight: 600;
}

.text-muted-strong {
  color: #4b5563;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-meta {
  margin: 28px 0 0;
  color: var(--muted-soft);
  font-size: 0.88rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* --- Buttons --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.button:active {
  transform: translateY(0);
}

.button-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 90, 79, 0.3);
}

.button-accent:hover {
  background: var(--accent-deep);
  box-shadow: 0 6px 20px rgba(255, 90, 79, 0.35);
}

.button-dark {
  background: #ffe7de;
  color: var(--accent-deep);
  border: 1px solid #f2c9bb;
}

.button-dark:hover {
  background: #ffd8cb;
  color: #b83d36;
  box-shadow: var(--shadow-sm);
}

.button-small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.button-large {
  min-height: 58px;
  padding: 16px 32px;
  font-size: 1.1rem;
}

.text-link {
  color: var(--text);
  font-weight: 600;
  position: relative;
  transition: color var(--transition);
}

.text-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--border);
  border-radius: 1px;
  transition: background var(--transition);
}

.text-link:hover {
  color: var(--accent-deep);
}

.text-link:hover::after {
  background: var(--accent);
}

/* --- Legal pages --- */

.legal-page {
  padding: 48px 0 56px;
}

.legal-layout {
  max-width: 720px;
}

.legal-intro-block {
  margin-bottom: 32px;
}

.legal-intro-block h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-lead {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-meta {
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--muted-soft);
}

.legal-meta strong {
  color: var(--muted);
}

.legal-card h2 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
  font-family: "Inter Tight", "Inter", sans-serif;
  letter-spacing: -0.03em;
  color: var(--text);
}

.legal-card h2:first-child,
.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(222, 70, 62, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.legal-card a:hover {
  text-decoration-color: var(--accent-deep);
}

/* --- Footer --- */

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-text {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --- Selection --- */

::selection {
  background: rgba(255, 90, 79, 0.15);
  color: var(--text);
}

/* --- Responsive --- */

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .main-nav {
    gap: 16px;
    justify-content: center;
  }

  .hero-section {
    padding: 48px 0 32px;
  }

  .hero-section::before {
    width: 320px;
    height: 320px;
  }

  .hero-simple h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    text-align: center;
  }

  .hero-meta {
    line-height: 1.8;
  }

  .legal-card {
    padding: 24px;
    border-radius: var(--radius-md);
  }

  .footer-links {
    gap: 16px;
  }
}
