/* ===== CSS Custom Properties ===== */
:root {
  --bg: #F7F5F2;
  --bg-alt: #F0ECE6;
  --white: #FFFFFF;
  --dark: #2C3A3B;
  --dark-hover: #3A4B4D;
  --text-secondary: #6B7280;
  --accent: #C4A265;
  --accent-light: #F5EDD8;
  --border: #E5E1DB;
  --error: #C25450;

  --font-headline: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-md: 10px;
  --max-width: 1120px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-login {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.header-login:hover {
  color: var(--dark);
}

.header-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--dark);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--dark-hover);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-primary:hover {
  background: var(--dark-hover);
  box-shadow: 0 4px 16px rgba(44, 58, 59, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Dashboard Preview ===== */
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  background: var(--white);
}

.preview-topbar {
  background: var(--dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-topbar-logo {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.preview-topbar-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}

.preview-col {
  padding: 20px;
}

.preview-divider {
  background: var(--border);
}

.preview-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.preview-row-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 400;
}

.preview-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-sand {
  background: #FDF6E3;
  color: #92742A;
}

.badge-green {
  background: #E8F5E4;
  color: #2D6A2E;
}

/* ===== Benefits ===== */
.features {
  padding: 80px 0;
  background: var(--white);
}

.entry-options {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.entry-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(44, 58, 59, 0.05);
}

.entry-card-accent {
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  border-color: rgba(196, 162, 101, 0.35);
}

.entry-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: #8a6c2a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-card h3 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  margin: 16px 0 10px;
  line-height: 1.2;
}

.entry-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-headline);
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.375rem;
}

.feature-card h3 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== How it works ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: var(--white);
}

.cta-box {
  text-align: center;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 64px 32px;
}

.cta-box h2 {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 28px;
  line-height: 1.25;
}

.btn-inverted {
  background: white;
  color: var(--dark);
  border: none;
}

.btn-inverted:hover {
  background: var(--bg-alt);
  box-shadow: none;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* ===== Legal Pages ===== */
.legal-shell {
  padding: 56px 0 72px;
}

.legal-container {
  max-width: 1160px;
}

.legal-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.legal-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.legal-header h1 {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.legal-lead {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-note {
  background: var(--accent-light);
  border: 1px solid #ead9b5;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  color: var(--dark);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.legal-toc p {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-toc a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 0;
  font-size: 0.92rem;
}

.legal-toc a:hover {
  color: var(--dark);
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.legal-section + .legal-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-list {
  padding-left: 20px;
  margin-top: 12px;
}

.legal-list li + li {
  margin-top: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-alt);
  font-weight: 700;
}

.legal-card a {
  color: var(--dark);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .features-grid,
  .entry-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps::before {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features,
  .how-it-works,
  .cta {
    padding: 56px 0;
  }

  .cta-box {
    padding: 48px 20px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .legal-shell {
    padding: 40px 0 56px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-card {
    padding: 22px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
