/* ============================================
   RobinWood App – Landing Page Styles v2
   Premium Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-dark: #10502D;
  --primary-very-dark: #094B27;
  --primary-light: #5B826D;
  --primary-lighter: #8BA99A;
  --secondary-light: #EDDAB7;
  --secondary-very-light: #FFF3DD;
  --accent: #F8D675;
  --orange: #C4692C;
  --action-orange: #D17A45;
  --white: #FFFFFF;
  --black: #000000;
  --grey: #757575;
  --grey-light: #F5F5F7;
  --light-grey: #E0E0E0;
  --bg: #FAFAFA;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(16,80,45,0.06);
  --shadow-md: 0 8px 30px rgba(16,80,45,0.08);
  --shadow-lg: 0 20px 60px rgba(16,80,45,0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--primary-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── NAVBAR ────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(16,80,45,0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.navbar .logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--primary-dark);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--primary-very-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── CONTAINER ─────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ──────────────────────────────────── */

.hero {
  padding: 160px 24px 120px;
  background: linear-gradient(165deg, #021A0B 0%, #0A3D22 30%, var(--primary-dark) 60%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(248,214,117,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 52px;
  height: 52px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(248,214,117,0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(248,214,117,0.2);
}

.hero h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, #F0C040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── STORE BUTTONS ─────────────────────────── */

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.store-btn.google {
  background: var(--white);
  color: var(--primary-dark);
}

.store-btn.apple {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.store-btn.apple:hover {
  background: rgba(255,255,255,0.2);
}

.store-btn .store-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn .store-icon svg {
  width: 24px;
  height: 24px;
}

.store-btn .store-text {
  text-align: left;
  line-height: 1.2;
}

.store-btn .store-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-btn .store-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

/* Dark variant for CTA section */
.store-btn.google-dark {
  background: var(--white);
  color: var(--primary-dark);
}

.store-btn.apple-dark {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

/* ── TRUST BAR ─────────────────────────────── */

.trust-bar {
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(16,80,45,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.trust-item .text {
  text-align: left;
}

.trust-item .text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.trust-item .text span {
  font-size: 12px;
  color: var(--grey);
}

/* ── FEATURES ──────────────────────────────── */

.features {
  padding: 100px 24px 80px;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-dark);
  letter-spacing: -1px;
  line-height: 1.1;
}

.section-header p {
  font-size: 18px;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(16,80,45,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  opacity: 0;
  transition: opacity 0.25s;
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.fi-green { background: rgba(16,80,45,0.08); }
.fi-orange { background: rgba(196,105,44,0.08); }
.fi-gold { background: rgba(248,214,117,0.15); }
.fi-teal { background: rgba(29,53,87,0.08); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
}

/* ── HOW IT WORKS ──────────────────────────── */

.how-it-works {
  padding: 100px 24px;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--light-grey), var(--primary-light), var(--light-grey));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(16,80,45,0.2);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ── CTA BANNER ────────────────────────────── */

.cta-banner {
  padding: 100px 24px;
  background: linear-gradient(160deg, #021A0B 0%, var(--primary-dark) 50%, #0D6B38 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(248,214,117,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  opacity: 0.9;
}

.cta-banner h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ────────────────────────────────── */

.footer {
  padding: 72px 24px 32px;
  background: #021A0B;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .footer-logo img {
  width: 36px;
  height: 36px;
}

.footer-brand .footer-logo span {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

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

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

.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── LEGAL PAGES ───────────────────────────── */

.legal-page {
  padding: 120px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-dark);
  letter-spacing: -1px;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-grey);
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul {
  margin: 12px 0 20px 24px;
  color: #444;
  font-size: 15px;
  line-height: 1.8;
}

.legal-page li { margin-bottom: 6px; }

.legal-page a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── SUPPORT PAGE ──────────────────────────── */

.support-hero {
  padding: 160px 24px 70px;
  background: linear-gradient(165deg, #021A0B 0%, var(--primary-dark) 60%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.support-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(transparent, var(--white));
}

.support-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.support-hero p {
  font-size: 18px;
  opacity: 0.75;
}

.support-content {
  padding: 60px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}

.support-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(16,80,45,0.06);
  background: var(--white);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.support-card .icon { font-size: 40px; margin-bottom: 16px; }

.support-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.support-card p {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 20px;
  line-height: 1.5;
}

.support-card .btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--primary-dark);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}

.support-card .btn-sm:hover {
  background: var(--primary-very-dark);
  transform: translateY(-1px);
}

.faq-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.5px;
}

.faq-item {
  border-bottom: 1px solid rgba(16,80,45,0.08);
  padding: 20px 0;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary:hover { color: var(--primary-light); }

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
}

/* ── 404 PAGE ──────────────────────────────── */

.page-404 {
  padding: 200px 24px 100px;
  text-align: center;
}

.page-404 h1 {
  font-size: 100px;
  font-weight: 900;
  color: var(--primary-dark);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0;
}

.page-404 p {
  font-size: 20px;
  color: var(--grey);
  margin-bottom: 32px;
}

.page-404 .btn-home {
  display: inline-flex;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-404 .btn-home:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 130px 20px 80px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero p { font-size: 17px; }
  .hero-logo { width: 64px; height: 64px; padding: 12px; }
  .hero-logo img { width: 40px; height: 40px; }
  .section-header h2 { font-size: 30px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--light-grey);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }
  .cta-banner h2 { font-size: 30px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .trust-items { gap: 24px; }
  .legal-page { padding: 100px 20px 60px; }
  .legal-page h1 { font-size: 30px; }
  .support-hero h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .trust-items { flex-direction: column; align-items: center; }
}
