/* =========================================================
   ROSU STUDIO — Global Stylesheet
   Palette: oat #F5F0E8 | caramel #C4956A | terracotta #D4845A
             dark #1D2620 | gold #C9A84C | text #3D2E1E
   ========================================================= */

/* ---- Fonts (Google Fonts CDN — replace with self-hosted for GDPR) ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --oat:        #F5F0E8;
  --oat-dim:    #EDE8DF;
  --caramel:    #C4956A;
  --terracotta: #D4845A;
  --dark:       #1D2620;
  --dark-card:  #243029;
  --gold:       #C9A84C;
  --text:       #3D2E1E;
  --text-muted: #7A6A5A;
  --text-light: #A89888;
  --border:     rgba(196, 149, 106, 0.25);
  --border-dark:rgba(201, 168, 76, 0.18);

  /* Neumorphic shadows for oat background */
  --nm-dark:    #d4cdbf;
  --nm-light:   #ffffff;

  /* Spacing */
  --nav-h: 72px;
  --max-w: 1160px;
  --section-py: 96px;

  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Nunito', 'Inter', sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--oat);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-py);
}

.section--dark {
  background: var(--dark);
  color: #F5F0E8;
}

.section--dim {
  background: var(--oat-dim);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 800;
}

.display-xl {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

.display-md {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.display-sm {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

.text-muted {
  color: var(--text-muted);
}

.text-muted--dark {
  color: rgba(245, 240, 232, 0.62);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
}

.eyebrow--dark {
  color: var(--gold);
}

/* ---- Gradient Text ---- */
.grad-text {
  background: linear-gradient(135deg, var(--caramel), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text--gold {
  background: linear-gradient(135deg, var(--gold), var(--caramel));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

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

.btn--primary {
  background: linear-gradient(135deg, var(--caramel), var(--terracotta));
  color: #fff;
  box-shadow: 0 4px 18px rgba(196, 149, 106, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(196, 149, 106, 0.45);
}

.btn--outline {
  border: 1.5px solid var(--caramel);
  color: var(--caramel);
}

.btn--outline:hover {
  background: rgba(196, 149, 106, 0.08);
}

.btn--outline-dark {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn--outline-dark:hover {
  background: rgba(201, 168, 76, 0.12);
}

.btn--ghost {
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Default: transparent over dark hero */
.nav {
  background: rgba(29, 38, 32, 0);
  border-bottom: 1px solid transparent;
}

/* Scrolled state (added via JS) */
.nav.scrolled {
  background: rgba(29, 38, 32, 0.70);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border-dark);
}

@supports not (backdrop-filter: blur(14px)) {
  .nav.scrolled {
    background: rgba(29, 38, 32, 0.97);
  }
}

/* Light nav variant (for pages with oat background at top) */
.nav--light {
  background: rgba(245, 240, 232, 0);
}

.nav--light.scrolled {
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

@supports not (backdrop-filter: blur(14px)) {
  .nav--light.scrolled {
    background: rgba(245, 240, 232, 0.98);
  }
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #F5F0E8;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav__logo:hover { opacity: 0.85; }

.nav__logo .logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav--light .nav__logo {
  color: var(--text);
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.80);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: #F5F0E8;
  background: rgba(255,255,255, 0.08);
}

.nav--light .nav__links a {
  color: var(--text-muted);
}

.nav--light .nav__links a:hover,
.nav--light .nav__links a.active {
  color: var(--text);
  background: rgba(0,0,0, 0.05);
}

/* Dropdown */
.nav__dropdown-wrap {
  position: relative;
}

.nav__dropdown-toggle {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.80);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}

.nav--light .nav__dropdown-toggle {
  color: var(--text-muted);
}

.nav__dropdown-wrap:hover .nav__dropdown-toggle {
  color: #F5F0E8;
  background: rgba(255,255,255, 0.08);
}

.nav--light .nav__dropdown-wrap:hover .nav__dropdown-toggle {
  color: var(--text);
  background: rgba(0,0,0, 0.05);
}

.nav__dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav__dropdown-wrap:hover .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(61, 46, 30, 0.14);
  min-width: 210px;
  padding: 8px;
  z-index: 200;
}

.nav__dropdown-wrap:hover .nav__dropdown,
.nav__dropdown-wrap:focus-within .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}

.nav__dropdown a:hover {
  background: var(--oat-dim);
  color: var(--text);
}

.nav__dropdown a .dd-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* CTA in nav */
.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: rgba(245, 240, 232, 0.85);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav--light .nav__hamburger span {
  background: var(--text);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(29, 38, 32, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px;
  z-index: 99;
  border-bottom: 1px solid var(--border-dark);
}

.nav--light .nav__mobile {
  background: rgba(245, 240, 232, 0.97);
}

.nav__mobile.open {
  display: block;
}

.nav__mobile a,
.nav__mobile .nav__mobile-dropdown-toggle {
  display: block;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}

.nav--light .nav__mobile a,
.nav--light .nav__mobile .nav__mobile-dropdown-toggle {
  color: var(--text);
  border-bottom-color: var(--border);
}

.nav__mobile-dropdown-content a {
  padding-left: 20px;
  font-size: 0.9rem;
  border-bottom: none;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(245, 240, 232, 0.70);
  padding-block: 64px 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer__brand .nav__logo {
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.55);
  max-width: 240px;
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: rgba(245, 240, 232, 0.95);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: rgba(245, 240, 232, 0.40);
}

.footer__bottom a {
  color: rgba(245, 240, 232, 0.50);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: rgba(245, 240, 232, 0.85);
}

/* ---- Cards ---- */

/* Neumorphic card — oat bg only */
.card-nm {
  background: var(--oat);
  border-radius: var(--r-lg);
  box-shadow: 8px 8px 20px var(--nm-dark),
             -8px -8px 20px var(--nm-light);
  padding: 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card-nm:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 28px var(--nm-dark),
             -12px -12px 28px var(--nm-light);
}

/* Dark glass card */
.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}

.card-glass:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
}

/* Feature card with top accent line */
.card-feature {
  border-radius: var(--r-md);
  padding: 28px;
  background: rgba(255,255,255, 0.035);
  border: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--caramel), var(--terracotta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-feature:hover::before {
  transform: scaleX(1);
}

.card-feature:hover {
  border-color: rgba(201, 168, 76, 0.30);
  transform: translateY(-3px);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--left.visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal--right.visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Phone Mockup ---- */
.phone {
  position: relative;
  width: 240px;
  height: 490px;
  flex-shrink: 0;
}

.phone__frame {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 44px;
  border: 6px solid #2A2A2A;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.phone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}

.phone__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Glow under phone */
.phone__glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(196,149,106,0.35) 0%, transparent 70%);
  filter: blur(14px);
}

/* ---- Stat Numbers ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.83rem;
  color: var(--text-muted--dark, rgba(245,240,232,0.55));
  letter-spacing: 0.04em;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge--warm {
  background: rgba(196, 149, 106, 0.15);
  color: var(--caramel);
  border: 1px solid rgba(196, 149, 106, 0.3);
}

.badge--gold {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: var(--dark);
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 72px;
  text-align: center;
  color: #F5F0E8;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
}

/* ---- Tags ---- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid var(--border-dark);
  color: rgba(245, 240, 232, 0.65);
}

/* ---- Section Divider ---- */
.divider {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--caramel), var(--terracotta));
  margin: 16px 0 28px;
}

/* ---- Grid Helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- App Store Badge (placeholder) ---- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}

.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

/* ---- Form Styles ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(196, 149, 106, 0.30);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  display: none;
}

.form-status.success {
  background: rgba(78, 202, 144, 0.12);
  color: #1D7A4F;
  border: 1px solid rgba(78, 202, 144, 0.3);
  display: block;
}

.form-status.error {
  background: rgba(212, 69, 69, 0.10);
  color: #8B1A1A;
  border: 1px solid rgba(212, 69, 69, 0.25);
  display: block;
}

/* ---- Legal Pages ---- */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
}

.legal-content a {
  color: var(--caramel);
  text-decoration: underline;
}

.legal-content .legal-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .nav__links,
  .nav__cta.desktop-only { display: none; }

  .nav__hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .phone { width: 190px; height: 390px; }
}

@media (max-width: 480px) {
  :root { --section-py: 48px; }
  .container { padding-inline: 18px; }
}
