/* ===========================================================
   DROBE — Marketing Site
   Design tokens + base styles
   =========================================================== */

:root {
  /* Backgrounds */
  --bg-primary: #0E0E0E;
  --bg-warm: #1A1714;
  --bg-card: #141414;
  --bg-card-warm: rgba(42, 31, 26, 0.6);

  /* Borders */
  --border-subtle: #2A2A2A;
  --border-warm: rgba(201, 167, 123, 0.18);

  /* Text */
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-tertiary: #606060;

  /* Accents */
  --caramel: #C9A77B;
  --caramel-deep: #B89A6E;
  --peach: #D4A58C;
  --rose: #D4A5B8;

  /* Gradient */
  --grad-text: linear-gradient(135deg, #D4A58C 0%, #C9A77B 40%, #B89A6E 70%, #D4A58C 100%);

  /* Type */
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Dot grid texture for dark sections */
.dotgrid {
  background-image: radial-gradient(rgba(201, 167, 123, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.dotgrid-dense {
  background-image: radial-gradient(rgba(201, 167, 123, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Warm section */
.warm { background: var(--bg-warm); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }
.italic { font-style: italic; }

.display-xxl {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display-xl {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.display-md {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 40ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--caramel);
}

/* Gradient text */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 22px; }
}

.section {
  padding: clamp(80px, 10vw, 160px) 0;
}
.section-sm { padding: clamp(60px, 7vw, 100px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--caramel);
  color: #0E0E0E;
}
.btn-primary:hover {
  background: #d4b58a;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(201, 167, 123, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--caramel);
  color: var(--caramel);
}
.btn-ghost {
  background: transparent;
  color: var(--caramel);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--peach); gap: 0.9em; }

.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Dashed divider ---------- */
.dashed-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  color: var(--caramel);
}
.dashed-rule::before, .dashed-rule::after {
  content: '';
  flex: 1;
  max-width: 120px;
  border-top: 1px dashed rgba(201, 167, 123, 0.4);
}
.dashed-rule .eyebrow { color: var(--caramel); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: var(--caramel);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .hamburger { display: inline-flex; }
}

/* Logo */
.drobe-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.drobe-logo .war {
  position: relative;
  color: var(--text-secondary);
  font-style: italic;
}
.drobe-logo .war::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  top: 52%;
  height: 1.5px;
  background: var(--caramel);
  transform: rotate(-6deg);
}
.drobe-logo .drobe {
  color: var(--text-primary);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 60px;
}
.mobile-nav-close {
  background: transparent; border: none; color: white; font-size: 28px; cursor: pointer;
  width: 40px; height: 40px;
}
.mobile-nav-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.mobile-nav-links a {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  letter-spacing: -0.02em;
}
.mobile-nav-links a .num {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--caramel);
  letter-spacing: 0.2em;
  margin-right: 14px;
  vertical-align: middle;
}
.mobile-nav-footer { padding-top: 24px; border-top: 1px solid var(--border-subtle); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card-warm);
  padding: 34px 30px 36px;
  border-radius: 4px;
  transition: all 0.4s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px) scale(1.005);
  background: rgba(42, 31, 26, 0.85);
  box-shadow: 0 30px 60px -30px rgba(201, 167, 123, 0.15);
}

.card-icon {
  width: 40px; height: 40px;
  color: var(--caramel);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 90px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 56px;
  margin-bottom: 72px;
}
.footer-brand .tagline {
  color: var(--text-secondary);
  margin-top: 18px;
  max-width: 28ch;
  font-size: 15px;
  font-style: italic;
  font-family: var(--serif);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--caramel); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-tertiary);
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Placeholders ---------- */
.placeholder {
  background:
    linear-gradient(135deg, rgba(201,167,123,0.05), rgba(42,31,26,0.3)),
    var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(201,167,123,0.06) 49%, rgba(201,167,123,0.06) 51%, transparent 52%);
  background-size: 14px 14px;
  opacity: 0.55;
}
.placeholder span { position: relative; z-index: 1; max-width: 80%; }

/* Phone placeholder */
.phone {
  aspect-ratio: 9 / 19.5;
  background:
    radial-gradient(140% 80% at 50% 0%, rgba(201,167,123,0.08), transparent 60%),
    linear-gradient(180deg, #1f1a16 0%, #121010 100%);
  border-radius: 36px;
  border: 1.5px solid #2a231d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 40px 80px -30px rgba(0,0,0,0.7),
    0 0 1px rgba(201,167,123,0.25);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.phone::before {
  /* notch */
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 22px;
  background: #050505;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg-primary);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 0; }
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.35;
  color: var(--caramel);
  border-left: 1px solid rgba(201,167,123,0.4);
  padding: 8px 0 8px 20px;
  margin: 26px 0;
  max-width: 30ch;
}

/* ---------- Feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- How it works steps ---------- */
.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}
.step:last-child { border-bottom: 1px solid var(--border-subtle); }
.step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.step-body h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step-body p { color: var(--text-secondary); max-width: 50ch; }
.step-media {
  width: 180px; aspect-ratio: 4/5;
}
@media (max-width: 760px) {
  .step { grid-template-columns: auto 1fr; gap: 20px; padding: 28px 0; }
  .step-media { display: none; }
  .step-body h3 { font-size: 22px; }
}

/* ---------- Forms ---------- */
input, textarea, select {
  font-family: var(--sans);
  font-size: 15px;
  background: rgba(20, 18, 16, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 2px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--caramel);
  background: rgba(42, 31, 26, 0.4);
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: block;
}

/* Newsletter inline form */
.newsletter {
  display: flex; gap: 10px;
  max-width: 460px;
  margin-top: 24px;
}
.newsletter input { flex: 1; }
@media (max-width: 560px) {
  .newsletter { flex-direction: column; }
}

/* ---------- Accordion ---------- */
details {
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
}
details summary {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  color: var(--caramel);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.3s;
}
details[open] summary::after { content: '−'; }
details p {
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 65ch;
  line-height: 1.65;
}

/* ---------- Prose (blog posts / legal) ---------- */
.prose {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 17.5px;
  color: #d8d4ce;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.2em;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.prose p { color: #cac6c0; }
.prose a { color: var(--caramel); text-decoration: underline; text-decoration-color: rgba(201,167,123,0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--caramel); }
.prose blockquote {
  border-left: 2px solid var(--caramel);
  padding: 6px 0 6px 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3em;
  color: var(--peach);
  line-height: 1.4;
  margin: 1.5em 0;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; color: #cac6c0; }
.prose li::marker { color: var(--caramel); }
.prose hr { border: none; border-top: 1px dashed var(--border-subtle); margin: 2em 0; }
.prose strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Scroll indicator ---------- */
.scroll-ind {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-ind::after {
  content: '';
  width: 1px; height: 42px;
  background: linear-gradient(var(--caramel), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(201,167,123,0.35);
  color: var(--caramel);
  background: rgba(201,167,123,0.06);
}

/* Skip link */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--caramel);
  color: #0E0E0E;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

/* Category pills */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--sans);
}
.pill:hover, .pill.active {
  border-color: var(--caramel);
  color: var(--caramel);
}

/* Selection */
::selection {
  background: rgba(201, 167, 123, 0.4);
  color: var(--text-primary);
}
