/* =========================================
   TIM LANDING PAGE — CREAM / SANDAL PALETTE
   Ratio 1 (white bg) : 3 (cream display) : 8 (sandal interactive)
   ========================================= */

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

/* -- DESIGN TOKENS -- */
:root {
  /* 1-part — Background / Base */
  --white:        #FFFFFF;
  --off-white:    #FAF8F5;

  /* 3-part — Display / Content areas */
  --cream-light:  #F5EAD9;
  --cream:        #EED9BB;
  --sandal-light: #E4C99A;

  /* 8-part — Interactive / Buttons / Accent */
  --sandal:       #C08B5C;
  --sandal-dark:  #A0714A;
  --sandal-glow:  rgba(192, 139, 92, 0.25);
  --sandal-glow2: rgba(192, 139, 92, 0.1);

  /* Text */
  --text-dark:    #2D1F0F;
  --text-body:    #5C4033;
  --text-muted:   #9C7B6A;

  /* Misc */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow-sm:    0 2px 12px rgba(160, 113, 74, 0.1);
  --shadow-md:    0 8px 32px rgba(160, 113, 74, 0.15);
  --shadow-lg:    0 20px 60px rgba(160, 113, 74, 0.2);
}

/* -- RESET & BASE -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--off-white);
  color: var(--text-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

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

/* -- SHARED -- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-label {
  display: inline-block;
  background: var(--cream);
  color: var(--sandal-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-dark);
  margin-bottom: 56px;
  line-height: 1.15;
}

/* -- BUTTONS (8-part accent) -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sandal);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--sandal-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--sandal-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(160, 113, 74, 0.4);
}

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

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sandal-dark);
  font-weight: 500;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--cream);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--cream-light);
  border-color: var(--sandal-light);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0 24px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream);
  transition: box-shadow 0.3s ease;
}

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sandal);
}

.nav-logo svg { color: var(--sandal); }

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s ease;
}

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

.btn-nav {
  background: var(--sandal);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--sandal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--sandal-glow);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--sandal-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid var(--sandal-light);
}

.hero-title {
  font-size: clamp(42px, 5.5vw, 70px);
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.accent-text {
  color: var(--sandal);
  position: relative;
}

.accent-text::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sandal-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineReveal 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes underlineReveal {
  to { transform: scaleX(1); }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 24px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--sandal);
}

.proof-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--cream);
}

/* -- BROWSER MOCKUP -- */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: floatUp 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.browser-mockup {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--cream);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sandal-light);
}

.mockup-url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--cream);
}

.mockup-screen {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.mockup-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: blur(1.5px);
  opacity: 0.4;
}

.mkc-bar {
  height: 12px;
  background: var(--cream);
  border-radius: 6px;
}

.w80 { width: 80%; }
.w70 { width: 70%; }
.w50 { width: 50%; }
.w40 { width: 40%; }

.mkc-thumb {
  height: 80px;
  background: var(--cream-light);
  border-radius: 8px;
  margin: 4px 0;
  width: 100%;
}

.mockup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(249, 242, 233, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mockup-overlay-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream);
  max-width: 320px;
}

.mockup-overlay-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.mockup-overlay-msg {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 18px;
  line-height: 1.5;
}

.mockup-overlay-btn {
  background: var(--sandal);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
}

.mockup-overlay-btn:hover { background: var(--sandal-dark); }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--white);
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}

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

.feature-card {
  background: var(--off-white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--sandal-light);
  background: var(--white);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--cream-light);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--cream);
  transition: all 0.3s ease;
}

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

.step-connector {
  width: 48px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(to right, var(--cream), var(--sandal-light), var(--cream));
  margin-top: 60px;
  position: relative;
}

.step-connector::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: -12px;
  color: var(--sandal);
  font-size: 18px;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--sandal-light);
  line-height: 1;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.step-content p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ============================================================
   MESSAGE CAROUSEL
   ============================================================ */
.messages-section {
  background: var(--white);
  border-top: 1px solid var(--cream);
}

.messages-ticker {
  background: var(--cream-light);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  text-align: center;
  border: 1px solid var(--cream);
  margin-bottom: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.3s ease;
}

.msg-icon {
  font-size: 52px;
  line-height: 1;
  display: block;
}

.msg-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}

.ticker-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--sandal-light);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ticker-dot.active {
  background: var(--sandal);
  border-color: var(--sandal);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download-section {
  background: var(--cream-light);
  border-top: 1px solid var(--cream);
}

.download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.download-text .section-title { margin-bottom: 20px; }

.download-text p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.download-steps {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border: 1px solid var(--cream);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.download-steps code {
  background: var(--cream);
  color: var(--sandal-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.download-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream);
}

.download-card-inner {
  background: var(--off-white);
  border-radius: calc(var(--radius-xl) - 3px);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.ext-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--sandal);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ext-preview svg { color: var(--sandal); }

.download-card-inner h3 {
  font-size: 22px;
  color: var(--text-dark);
}

.download-card-inner > p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ext-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--cream);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--sandal);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-container { flex-direction: column; }
  .step-connector { display: none; }
  .download-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
}

/* ============================================================
   INSTALL GUIDE SECTION
   ============================================================ */

.install-subtitle {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 48px;
}

/* Big CTA download button */
.install-cta {
  text-align: center;
  margin-bottom: 72px;
}

.btn-xl {
  font-size: 18px;
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 30px var(--sandal-glow);
  gap: 14px;
}

.btn-xl:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(160, 113, 74, 0.45);
}

.install-cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Steps list */
.install-steps {
  max-width: 760px;
  margin: 0 auto 64px;
}

.install-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.install-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.install-step--success {
  border-color: var(--sandal-light);
  background: var(--cream-light);
}

/* Step number bubble */
.install-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sandal);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--sandal-glow);
  margin-top: 2px;
}

.install-step-num--done {
  background: #5a9e72;
  box-shadow: 0 4px 12px rgba(90, 158, 114, 0.3);
}

.install-step-body { flex: 1; }

.install-step-body h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.install-step-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 14px;
}

.install-step-body p:last-child { margin-bottom: 0; }

/* Connector line between steps */
.install-step-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--cream), var(--sandal-light));
  margin: 0 auto;
  position: relative;
  left: 50px; /* align with step number center */
}

/* Command/path display */
.install-code {
  display: inline-block;
  background: var(--cream-light);
  border: 1px solid var(--cream);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: monospace;
  font-size: 14px;
  color: var(--sandal-dark);
  margin-top: 4px;
}

/* Code block with label */
.install-code-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream-light);
  border: 1px solid var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 10px;
}

.code-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 110px;
}

.install-code-block code {
  font-family: monospace;
  font-size: 14px;
  color: var(--sandal-dark);
  font-weight: 600;
}

/* Tip/info callout */
.install-tip {
  background: var(--cream-light);
  border-left: 3px solid var(--sandal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-top: 12px;
}

/* Trust badge row */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.trust-badge {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-align: center;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.trust-badge:hover {
  background: var(--cream-light);
  border-color: var(--sandal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Responsive install section */
@media (max-width: 900px) {
  .trust-badges { grid-template-columns: 1fr 1fr; }
  .install-step { padding: 20px; }
}

@media (max-width: 600px) {
  .trust-badges { grid-template-columns: 1fr; }
  .install-step-line { left: 34px; }
  .btn-xl { font-size: 16px; padding: 16px 28px; }
}
