/* ============================================
   MIADESK — Editorial Build
   ============================================ */

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

/* --- VARIABLES --- */
:root {
  --bg: #e8e2d9;
  --bg-card: #ffffff;
  --dark: #262420;
  --dark-card: #302e2b;
  --olive: #3a4a35;
  --text: #1a1917;
  --text-2: #5c5850;
  --text-3: #8a857d;
  --light: rgba(255, 255, 255, 0.85);
  --light-2: rgba(255, 255, 255, 0.45);
  --light-3: rgba(255, 255, 255, 0.22);
  --accent: #b5694d;
  --accent-2: #c4836a;
  --border: rgba(26, 25, 23, 0.11);
  --border-d: rgba(255, 255, 255, 0.09);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
}

/* --- BASE --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   SCROLL REVEAL — fires on enter AND exit
   ============================================ */
.r {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.72s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.72s cubic-bezier(0.25, 1, 0.5, 1);
}
.r.r-right  { transform: translateX(38px); }
.r.r-up     { transform: translateY(56px); }
.r.in {
  opacity: 1;
  transform: none;
}
.r-d1 { transition-delay: 0.1s; }
.r-d2 { transition-delay: 0.2s; }
.r-d3 { transition-delay: 0.3s; }
.r-d4 { transition-delay: 0.4s; }

/* ============================================
   SHARED COMPONENTS
   ============================================ */

/* Label */
.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.label.l { color: var(--light-2); }
.label.l::before { background: var(--accent-2); }

/* Heading */
.h {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}
.h em { font-style: italic; color: var(--accent); }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid currentColor;
  border-radius: 100px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
              transform 0.25s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(181, 105, 77, 0.2);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 13px 26px;
}
.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(232, 226, 217, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.nav-logo-sub {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-3);
  font-style: normal;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 64px;
  background: var(--bg);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.75rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero-headline em { font-style: italic; color: var(--accent); }

.hero-right { padding-top: 10px; }

.hero-sub {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 360px;
}

/* Video placeholder */
.hero-media {
  margin-top: 56px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
}
.hero-media-inner svg { opacity: 0.3; }
.hero-media-inner span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Ticker */
.ticker-wrap {
  margin-top: 48px;
  border-top: 1.5px solid var(--accent);
  padding: 14px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  padding-right: 20px;
}
.ticker-item {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  white-space: nowrap;
}
.ticker-dot {
  color: var(--accent);
  font-size: 0.35rem;
  line-height: 1;
}

/* ============================================
   SECTIONS (light)
   ============================================ */
.section {
  padding: 80px 0;
  background: var(--bg);
}
.section-header { margin-bottom: 52px; }

/* ============================================
   PROBLEM
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}
.card-dark {
  background: var(--olive);
  border-color: var(--olive);
}
.card-dark .stat { color: #fff; }
.card-dark .stat-label { color: var(--light-2); }
.card-wide { grid-column: 1 / -1; }

.stat {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 260px;
}
.quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-2);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}

/* ============================================
   SOLUTION
   ============================================ */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.solution-sticky {
  position: sticky;
  top: 96px;
  align-self: start;
}
.solution-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 40px;
}
.feature-list { display: flex; flex-direction: column; }
.feature-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  transition: padding-left 0.25s;
}
.feature-item:last-child { border-bottom: 1px solid var(--border); }
.feature-item:hover { padding-left: 8px; }
.feature-n {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--accent);
  min-width: 22px;
  flex-shrink: 0;
}
.feature-t { font-size: 0.9375rem; color: var(--text); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.step:hover {
  background: var(--bg-card);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.step-n { font-family: var(--serif); font-size: 1.125rem; color: var(--accent); }
.step-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.step-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 10px;
}
.step-desc { font-size: 0.9rem; line-height: 1.7; color: var(--text-2); }

/* ============================================
   NOTIFICATION PREVIEW
   ============================================ */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
}
.preview-sub {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 14px;
}
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.notif:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-2);
}
.notif-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
}
.notif-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  flex: 1;
}
.notif-time { font-size: 0.6875rem; color: var(--text-3); }
.notif-body { font-size: 0.9rem; line-height: 1.5; color: var(--text); }
.notif-body strong { font-weight: 600; }
.notif-meta { font-size: 0.8125rem; color: var(--text-3); }

/* ============================================
   DARK BLOCK — CTA + Footer (one seamless bg)
   ============================================ */
.dark-block {
  background: var(--dark);
  color: #fff;
}

/* CTA */
.cta-section { padding: 80px 0; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-heading {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}
.cta-heading em { font-style: italic; color: var(--accent-2); }
.cta-body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--light-2);
  margin-bottom: 32px;
  max-width: 380px;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(181, 105, 77, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(181, 105, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 105, 77, 0); }
}
.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--accent);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.375rem;
  animation: pulse 2.5s ease-out infinite;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.phone-btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 105, 77, 0.3);
  animation: none;
}
.phone-sub {
  font-size: 0.8125rem;
  color: var(--light-3);
  margin-top: 12px;
}

/* Form */
.form-box {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 22px;
}
.form { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input {
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.input::placeholder { color: rgba(255, 255, 255, 0.28); }
.input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 2px 0 6px;
}
.consent input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 3px;
  accent-color: var(--accent-2);
}
.consent-text {
  font-size: 0.625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.28);
}
.consent-text a { color: rgba(255, 255, 255, 0.45); text-decoration: underline; }
.consent-text a:hover { color: #fff; }
.form-success { text-align: center; padding: 32px 0; }
.form-success p:first-child {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
}
.form-success p:last-child { font-size: 0.9rem; color: var(--light-2); }

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-d);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-d);
}
.footer-logo { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.footer-tagline { font-size: 0.8125rem; color: var(--light-3); margin-top: 5px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.75rem; color: rgba(255, 255, 255, 0.2); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal {
  padding: 120px 0 80px;
  background: var(--bg);
  min-height: 100vh;
}
.legal-content { max-width: 700px; }
.legal-updated { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 10px; }
.legal-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--text);
  margin: 36px 0 10px;
}
.legal-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 6px;
}
.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 10px;
}
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 10px; }
.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 4px;
}
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content a:hover { color: var(--text); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }

  .hero { padding: 104px 0 48px; min-height: auto; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-headline { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-headline br { display: none; }

  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }

  .solution-grid,
  .preview-grid,
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .solution-sticky { position: static; }

  .steps { grid-template-columns: 1fr; gap: 16px; }

  .section { padding: 56px 0; }
  .cta-section { padding: 56px 0; }

  .h { font-size: clamp(2rem, 5vw, 2.75rem); }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.875rem; }
  .stat { font-size: 2.5rem; }
  .card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-box { padding: 24px 20px; }
  .phone-btn { width: 100%; justify-content: center; font-size: 1.25rem; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 16px; }
  .section { padding: 44px 0; }
  .cta-section { padding: 44px 0; }
}
