/* DirMaster landing — dark/gold mock + full light theme */

:root {
  --dm-accent: #ffb800;
  --dm-accent-pressed: #e0a200;
  --dm-accent-soft: rgba(255, 184, 0, 0.14);
  --dm-bg: #f9fafb;
  --dm-bg-elevated: #ffffff;
  --dm-card: #ffffff;
  --dm-card-border: rgba(26, 29, 38, 0.08);
  --dm-card-shadow: 0 8px 24px rgba(26, 29, 38, 0.06);
  --dm-text: #1a1a1a;
  --dm-text-muted: #666666;
  --dm-text-inverse: #ffffff;
  --dm-topbar: rgba(249, 250, 251, 0.92);
  --dm-topbar-border: rgba(26, 29, 38, 0.08);
  --dm-nav: #4b5563;
  --dm-nav-hover: #1a1a1a;
  --dm-phone-frame: #1c2228;
  --dm-phone-screen: #f7f8fa;
  --dm-phone-text: #1a1d26;
  --dm-phone-muted: #6b7280;
  --dm-phone-card: #ffffff;
  --dm-phone-border: #e5e7eb;
  --dm-hero-glow: rgba(255, 184, 0, 0.18);
  --dm-cta-overlay: linear-gradient(110deg, rgba(249, 250, 251, 0.96), rgba(255, 248, 230, 0.92));
  --dm-footer-bg: #f3f4f6;
  --dm-ok: #059669;
  --dm-blue: #2563eb;
  --border: rgba(26, 29, 38, 0.08);
  --theme-toggle-track: #e8edf5;
  --theme-toggle-knob: #ffffff;
  --theme-toggle-icon: #6b7280;
  --theme-toggle-active: #ffb800;
  --space: 20px;
  --radius: 14px;
  --radius-lg: 18px;
  --max: 1120px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  /* keep for portal/theme shared toggle names */
  --background: var(--dm-bg);
  --surface: var(--dm-card);
  --text-primary: var(--dm-text);
  --text-secondary: var(--dm-text-muted);
  --accent: #e87722;
}

html[data-theme="dark"] {
  --dm-accent: #ffb800;
  --dm-accent-pressed: #e0a200;
  --dm-accent-soft: rgba(255, 184, 0, 0.14);
  --dm-bg: #0d1117;
  --dm-bg-elevated: #0d1117;
  --dm-card: #161b22;
  --dm-card-border: rgba(255, 255, 255, 0.06);
  --dm-card-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --dm-text: #ffffff;
  --dm-text-muted: #a0a8b0;
  --dm-text-inverse: #0d1117;
  --dm-topbar: rgba(13, 17, 23, 0.92);
  --dm-topbar-border: rgba(255, 255, 255, 0.06);
  --dm-nav: rgba(255, 255, 255, 0.72);
  --dm-nav-hover: #ffffff;
  --dm-phone-frame: #1a1f27;
  --dm-phone-screen: #12161c;
  --dm-phone-text: #f3f4f6;
  --dm-phone-muted: #8e97a4;
  --dm-phone-card: #1c222d;
  --dm-phone-border: #2d3748;
  --dm-hero-glow: rgba(255, 184, 0, 0.22);
  --dm-cta-overlay: linear-gradient(110deg, rgba(13, 17, 23, 0.92), rgba(22, 27, 34, 0.88));
  --dm-footer-bg: #090c10;
  --dm-ok: #00a843;
  --dm-blue: #3b82f6;
  --border: #2d3748;
  --theme-toggle-track: #1c252e;
  --theme-toggle-knob: #2a3440;
  --theme-toggle-icon: #8e97a4;
  --theme-toggle-active: #ffb800;
  --background: var(--dm-bg);
  --surface: var(--dm-card);
  --text-primary: var(--dm-text);
  --text-secondary: var(--dm-text-muted);
  --accent: #ff7f00;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.landing {
  margin: 0;
  font-family: var(--font);
  background: var(--dm-bg);
  color: var(--dm-text);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: none;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

.text-gold {
  color: var(--dm-accent);
}

.text-ok {
  color: var(--dm-ok) !important;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--space);
  background: var(--dm-topbar);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dm-topbar-border);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--dm-text);
  text-decoration: none;
  z-index: 2;
}

.brand-mark {
  display: inline-flex;
  color: var(--dm-accent);
  flex: 0 0 auto;
}

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--dm-card-border);
  border-radius: 12px;
  background: var(--dm-card);
  cursor: pointer;
  z-index: 2;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dm-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar-right {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 88px var(--space) 32px;
  background: var(--dm-bg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.topbar-right.is-open {
  transform: translateX(0);
}

.topbar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dm-nav);
  text-decoration: none;
  padding: 12px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.topbar-nav a:hover,
.topbar-nav a:active {
  color: var(--dm-nav-hover);
}

.topbar-download {
  width: 100%;
  margin-top: 8px;
}

.topbar-right .theme-toggle {
  margin-top: 16px;
  align-self: flex-start;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}

.btn-gold {
  background: var(--dm-accent);
  color: #1a1a1a;
  border-color: var(--dm-accent);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--dm-accent-pressed);
  border-color: var(--dm-accent-pressed);
}

.btn-outline-gold {
  background: transparent;
  color: var(--dm-accent);
  border-color: var(--dm-accent);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus-visible {
  background: var(--dm-accent-soft);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 20px;
  background:
    radial-gradient(ellipse 90% 70% at 90% 0%, var(--dm-hero-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, var(--dm-accent-soft), transparent 50%),
    var(--dm-bg);
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
  animation: rise-in 0.7s ease both;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 7vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--dm-text-muted);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .store-badge,
html:not([data-theme="dark"]) .store-badge {
  background: #111827;
}

.store-badge[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.store-badge-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-badge small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  line-height: 1.2;
}

.store-badge strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-text-muted);
}

.trust-icon {
  display: inline-flex;
  color: var(--dm-accent);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise-in 0.85s 0.1s ease both;
}

/* —— Phone mockup images —— */
.phone-shot {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
}

.float-y {
  animation: float-y 4.5s ease-in-out infinite;
}

.phone-tilt {
  transform: rotate(7deg);
}

/* —— Sections shared —— */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.center {
  text-align: center;
}

.section-head h2,
.section h2,
.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dm-text);
}

.section-lead {
  margin: 0;
  color: var(--dm-text-muted);
  font-size: 1rem;
  max-width: 36em;
}

.section-cta {
  margin-top: 28px;
}

.section-cta.center {
  text-align: center;
}

/* Why */
.why-grid {
  display: grid;
  gap: 14px;
}

.why-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--dm-card);
  border: 1px solid var(--dm-card-border);
  box-shadow: var(--dm-card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.why-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 184, 0, 0.35);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--dm-accent-soft);
  color: var(--dm-accent);
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.why-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--dm-text-muted);
}

/* How / flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.flow-step {
  text-align: center;
  padding: 8px 4px;
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--dm-accent);
  color: var(--dm-accent);
  background: var(--dm-accent-soft);
}

.flow-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.flow-step p {
  margin: 0 auto;
  max-width: 16em;
  font-size: 0.9rem;
  color: var(--dm-text-muted);
}

/* Audiences */
.aud-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.aud-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.aud-icon {
  display: inline-flex;
  color: var(--dm-accent);
}

.aud-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--dm-text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dm-accent);
}

.aud-col .btn {
  width: 100%;
}

.aud-phone {
  display: flex;
  justify-content: center;
  order: -1;
}

/* Download */
.download {
  background: var(--dm-card);
  border-block: 1px solid var(--dm-card-border);
}

.download-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.download-copy .section-lead {
  margin-bottom: 20px;
}

.store-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--dm-text-muted);
}

.download-visual {
  display: flex;
  justify-content: center;
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--dm-card);
  border: 1px solid var(--dm-card-border);
  box-shadow: var(--dm-card-shadow);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a1a1a;
  background: linear-gradient(135deg, #ffb800, #f59e0b);
}

.review-avatar.av-2 {
  background: linear-gradient(135deg, #93c5fd, #2563eb);
  color: #fff;
}

.review-avatar.av-3 {
  background: linear-gradient(135deg, #6ee7b7, #059669);
  color: #fff;
}

.review-top strong {
  display: block;
  font-size: 0.98rem;
}

.stars {
  color: var(--dm-accent);
  letter-spacing: 1px;
  font-size: 13px;
  line-height: 1.2;
}

.review-card p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--dm-text-muted);
}

.review-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--dm-text-muted);
  opacity: 0.85;
}

/* CTA banner */
.cta-banner {
  position: relative;
  padding: 48px 0;
  background:
    var(--dm-cta-overlay),
    radial-gradient(ellipse 80% 100% at 70% 50%, rgba(255, 184, 0, 0.12), transparent 55%),
    linear-gradient(135deg, #1c2228 0%, #0d1117 55%, #2a2110 100%);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .cta-banner,
html:not([data-theme="dark"]) .cta-banner {
  background:
    var(--dm-cta-overlay),
    radial-gradient(ellipse 80% 100% at 70% 50%, rgba(255, 184, 0, 0.2), transparent 55%),
    linear-gradient(135deg, #fff8e8 0%, #f3f4f6 55%, #ffe8a8 100%);
  color: var(--dm-text);
  border-block-color: var(--dm-card-border);
}

.cta-banner-inner {
  display: grid;
  gap: 20px;
}

.cta-banner h2 {
  color: inherit;
}

.cta-banner p {
  margin: 0;
  color: inherit;
  opacity: 0.8;
  max-width: 34em;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--dm-footer-bg);
  color: var(--dm-text);
  padding: 48px 0 28px;
  border-top: 1px solid var(--dm-card-border);
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--dm-text);
  margin-bottom: 10px;
}

.footer-about {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--dm-text-muted);
  max-width: 28em;
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dm-card);
  border: 1px solid var(--dm-card-border);
  color: var(--dm-accent);
  text-decoration: none;
}

.footer-h {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--dm-text-muted);
  text-decoration: none;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

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

.footer-muted {
  font-size: 0.92rem;
  color: var(--dm-text-muted);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--dm-card-border);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--dm-text-muted);
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .float-y,
  .why-card {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Tablet —— */
@media (min-width: 640px) {
  .hero-cta,
  .cta-banner-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    min-width: 168px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aud-phone {
    order: 0;
  }
}

/* —— Desktop —— */
@media (min-width: 900px) {
  :root {
    --space: 28px;
  }

  .nav-burger {
    display: none;
  }

  .topbar {
    padding-inline: max(var(--space), calc((100% - var(--max)) / 2 + var(--space)));
  }

  .topbar-right {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0;
    background: transparent;
    transform: none;
    overflow: visible;
    margin-left: auto;
  }

  .topbar-right.is-open {
    transform: none;
  }

  .topbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 16px;
  }

  .topbar-nav a {
    font-size: 14px;
    padding: 8px 0;
  }

  .topbar-download {
    width: auto;
    margin-top: 0;
  }

  .topbar-right .theme-toggle {
    margin-top: 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    min-height: 520px;
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .phone-hero,
  .phone-mid {
    width: 280px;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    position: relative;
  }

  .flow-step {
    position: relative;
  }

  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    border-top: 1.5px dashed rgba(255, 184, 0, 0.55);
    pointer-events: none;
  }

  .aud-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 36px;
  }

  .aud-col .btn {
    width: auto;
  }

  .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .phone-tilt {
    width: 250px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-banner-inner {
    grid-template-columns: 1.2fr auto;
    align-items: center;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1100px) {
  .hero-title {
    font-size: 3.25rem;
  }
}
