/* RealLok – matched to Figma: sections, colors, layout */

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --line: #e8eaef;
  --text: #0f1424;
  --muted: #5c6478;
  --royal-blue: #2563eb;
  --royal-blue-dark: #1d4ed8;
  --real-time-green: #10b981;
  --dark-bg: #0f172a;
  --gray-section: #6b7280;
  --container: min(1140px, 100vw - 48px);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--royal-blue);
  text-decoration: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner,
.footer-top-inner,
.footer-bottom-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  color: inherit;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-list a:hover {
  color: var(--text);
  background: #eff6ff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Section common */
.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
}

.centered {
  text-align: center;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-subtitle.centered {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--royal-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--royal-blue-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-white {
  background: #fff;
  color: var(--royal-blue);
}

.btn-green {
  background: var(--real-time-green);
  color: #fff;
}

.btn-green:hover {
  background: #059669;
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Section 1: Hero – white / light gradient */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 56px 0 40px;
}

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

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--royal-blue);
}

.hero-subtitle {
  margin: 16px 0 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.hero-problem {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  width: min(100%, 380px);
  display: block;
  transform: rotate(6deg);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.hero-divider {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-divider-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-divider-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Section 2: Features overview – pure white, 3 cards */
.features-overview {
  background: #ffffff;
  padding: 64px 0;
}

.features-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.feature-block h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.feature-block p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Section 3: Blue spotlight – solid royal blue */
.blue-spotlight {
  background: var(--royal-blue);
  padding: 72px 0;
  color: #fff;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.spotlight-phone-wrap {
  display: flex;
  justify-content: center;
}

.spotlight-phone {
  width: min(100%, 300px);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.spotlight-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.12;
  font-weight: 700;
}

.spotlight-highlight {
  color: var(--real-time-green);
}

.spotlight-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.spotlight-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.spotlight-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #93c5fd;
}

/* Section 4: Everyday decisions – white */
.everyday {
  background: #ffffff;
  padding: 72px 0;
}

.everyday-cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.everyday-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 20px;
  overflow: hidden;
}

.everyday-card-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.everyday-card h3 {
  margin: 16px 20px 0;
  font-size: 1.08rem;
}

.everyday-card p {
  margin: 8px 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Section 5: How it works – white, 3 phones */
.how-section {
  background: #ffffff;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.how-three {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-step {
  margin: 0;
  text-align: center;
}

.how-step img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.how-step figcaption {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-step-icon {
  font-size: 1.5rem;
}

.how-step strong {
  font-size: 1.05rem;
}

.how-step span:last-of-type {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Section 6: Trust & credibility – white */
.trust-credibility {
  background: #ffffff;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.trust-cred-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.trust-cred-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

.trust-cred-blocks {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.trust-cred-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-cred-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trust-cred-block h3 {
  margin: 0;
  font-size: 1.02rem;
}

.trust-cred-block p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-cred-phone {
  display: flex;
  justify-content: center;
}

.trust-cred-phone img {
  max-width: 280px;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* Section 7: Trust dark – dark blue/black */
.trust-dark {
  background: var(--dark-bg);
  color: #fff;
  padding: 72px 0;
}

.trust-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.trust-dark-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

.trust-dark-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.trust-dark-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.trust-dark-icon {
  font-size: 1.2rem;
}

.trust-dark-phone-wrap {
  display: flex;
  justify-content: center;
}

.trust-dark-phone {
  max-width: 260px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
}

/* Section 8: Real-time choice – medium gray */
.realtime-choice {
  background: var(--gray-section);
  padding: 72px 0;
  color: #fff;
}

.realtime-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.realtime-card {
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.realtime-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.realtime-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.realtime-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.realtime-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.realtime-icon {
  font-size: 1.8rem;
}

.realtime-card-top h3 {
  margin: 0;
  font-size: 1.1rem;
}

.realtime-card-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.realtime-card-items {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.realtime-copy h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.18;
}

.realtime-copy p {
  margin: 14px 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

/* Section 10: Final CTA – royal blue */
.cta-final {
  background: var(--royal-blue);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-final h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

.cta-buttons {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-form {
  margin-top: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form input {
  flex: 1;
  min-width: 200px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form input:focus {
  outline: none;
  border-color: #fff;
}

/* Footer – Figma: top = logo + text + nav; bottom = copyright + columns */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-top {
  padding: 32px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.footer-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.footer-logo-link:hover {
  color: var(--text);
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

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

.footer-nav a:hover {
  color: var(--royal-blue);
}

.footer-bottom {
  padding: 28px 0 32px;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  text-align: left;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--royal-blue);
}

/* Simple footer (legal pages) */
.footer-inner:not(.footer-grid) {
  text-align: center;
}

.footer-inner:not(.footer-grid) .footer-brand {
  margin-bottom: 16px;
}

.footer-inner:not(.footer-grid) .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-inner:not(.footer-grid) .footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner:not(.footer-grid) .footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner:not(.footer-grid) .footer-brand p:not(.footer-copy) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Legal pages */
.legal-section {
  background: #f8fafc;
  padding: 72px 0;
}

.legal-page {
  min-height: 60vh;
}

.legal-content {
  margin-top: 20px;
  max-width: 720px;
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .spotlight-grid,
  .trust-cred-grid,
  .trust-dark-grid,
  .realtime-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .spotlight-copy,
  .trust-cred-copy,
  .trust-dark-copy,
  .realtime-copy {
    text-align: center;
  }

  .hero-problem,
  .spotlight-list {
    margin-left: auto;
    margin-right: auto;
  }

  .spotlight-list {
    max-width: 480px;
  }

  .hero-cta,
  .cta-buttons {
    justify-content: center;
  }

  .features-three,
  .everyday-cards,
  .how-three {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: #fff;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-list a {
    padding: 14px 16px;
  }

  .nav-list.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 680px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    padding: 0 20px;
    width: 100%;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-phone {
    transform: none;
    max-width: 300px;
  }

  .features-three,
  .everyday-cards,
  .how-three {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-form {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
