/* ============================================================
   RealtyReady — Global Stylesheet
   Premium real-estate exam-prep marketing site
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --gold:          #c8963e;
  --gold-dark:     #b5842e;
  --gold-light:    #d9b36a;
  --gold-glow:     rgba(200, 150, 62, .25);
  --charcoal:      #2c3639;
  --charcoal-deep: #1e2628;
  --charcoal-mid:  #364043;
  --gray-100:      #f6f7f8;
  --gray-200:      #e9ebed;
  --gray-300:      #d2d5d8;
  --gray-600:      #6b7280;
  --gray-800:      #3a3f47;
  --white:         #ffffff;
  --black:         #0a0c0d;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --shadow-gold:   0 8px 32px rgba(200,150,62,.18);
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:  'Manrope', var(--font-body);
  --max-width:     1180px;
  --nav-height:    72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 12px 36px rgba(200,150,62,.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gray-300);
}
.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-white {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  box-shadow: var(--shadow-lg);
}

.btn svg, .btn img { width: 20px; height: 20px; flex-shrink: 0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(44,54,57,.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 12px rgba(0,0,0,.18);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 10px 22px !important;
  font-size: .85rem !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(165deg, var(--charcoal-deep) 0%, var(--charcoal) 55%, var(--charcoal-mid) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(200,150,62,.12);
  border: 1px solid rgba(200,150,62,.25);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero-badge span { font-size: 1rem; }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-mockup {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.35));
  animation: float 6s ease-in-out infinite;
}

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

/* ---------- SECTIONS (shared) ---------- */
section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-dark .section-subtitle { color: rgba(255,255,255,.55); }

.section-gray {
  background: var(--gray-100);
}

/* ---------- SCREENSHOTS SHOWCASE ---------- */
.screenshots {
  padding: 80px 0 100px;
  background: var(--white);
}
.screenshots-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.screenshot-phone {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  background: var(--gray-100);
}
.screenshot-phone:nth-child(1),
.screenshot-phone:nth-child(4) {
  transform: translateY(20px);
}
.screenshot-phone:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.1);
}
.screenshot-phone img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 960px) {
  .screenshot-phone { width: 180px; }
  .screenshots-row { gap: 16px; }
}
@media (max-width: 768px) {
  .screenshots-row { gap: 12px; }
  .screenshot-phone { width: 44%; border-radius: 20px; }
  .screenshot-phone:nth-child(1),
  .screenshot-phone:nth-child(4) { transform: none; }
}
@media (max-width: 480px) {
  .screenshot-phone { width: 46%; border-radius: 16px; }
  .screenshots { padding: 60px 0 80px; }
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(200,150,62,.10), rgba(200,150,62,.04));
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: .93rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.pricing-badge {
  position: absolute;
  top: 20px; right: -32px;
  background: var(--gold);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 40px;
  transform: rotate(45deg);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-price .currency { font-size: 1.6rem; vertical-align: top; margin-right: 2px; }
.pricing-price .period  { font-size: .95rem; font-weight: 500; color: var(--gray-600); }

.pricing-desc {
  font-size: .9rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  padding: 8px 0;
  color: var(--gray-800);
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* ---------- PASS GUARANTEE ---------- */
.guarantee {
  background: linear-gradient(165deg, var(--charcoal-deep), var(--charcoal));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guarantee::after {
  content: '';
  position: absolute;
  bottom: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.guarantee .container { position: relative; z-index: 2; }

.guarantee-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200,150,62,.12);
  border: 2px solid rgba(200,150,62,.25);
  font-size: 2rem;
}

.guarantee h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.guarantee p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.7;
}
.guarantee .fine-print {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  margin-top: 28px;
}

/* ---------- DOWNLOAD CTA ---------- */
.download-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  text-align: center;
  color: var(--white);
}

.download-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.download-cta p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto 36px;
}

.download-cta .btn-group { justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--charcoal-deep);
  color: rgba(255,255,255,.5);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
}

.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: .88rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ---------- LEGAL PAGES ---------- */
.legal-hero {
  background: linear-gradient(165deg, var(--charcoal-deep), var(--charcoal));
  padding: 140px 0 60px;
  text-align: center;
  color: var(--white);
}
.legal-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 10px;
}
.legal-hero p {
  color: rgba(255,255,255,.5);
  font-size: .95rem;
}

.legal {
  padding: 72px 0 100px;
}

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-inner h2 {
  font-size: 1.35rem;
  margin: 48px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.legal-inner h2:first-of-type { border-top: none; margin-top: 0; }

.legal-inner h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.legal-inner p,
.legal-inner li {
  font-size: .95rem;
  color: var(--gray-800);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-inner a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-inner a:hover { color: var(--gold); }

.legal-inner strong { font-weight: 600; color: var(--charcoal); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .35s; }
.reveal-delay-5 { transition-delay: .4s; }
.reveal-delay-6 { transition-delay: .45s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero .btn-group { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-mockup { max-width: 320px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 100px 32px 40px;
    background: var(--charcoal-deep);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 30px rgba(0,0,0,.25);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links .btn { margin-top: 16px; }

  section { padding: 72px 0; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { justify-content: center; }
}
