/* ============================================
   Tamigo Landing — style.css
   Clean, modern, mobile-first
   ============================================ */

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

:root {
  --c-primary:    #0891B2;
  --c-primary-l:  #22D3EE;
  --c-primary-d:  #0E7490;
  --c-accent:     #F97316;
  --c-accent-d:   #EA580C;
  --c-bg:         #F8FAFC;
  --c-surface:    #FFFFFF;
  --c-text:       #0F172A;
  --c-text-2:     #475569;
  --c-text-3:     #94A3B8;
  --c-border:     #E2E8F0;
  --c-hero-from:  #0E7490;
  --c-hero-to:    #0891B2;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:        1140px;
  --radius:       12px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg:    0 4px 24px rgba(0,0,0,.08);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
.reveal-d4 { transition-delay: .48s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-d);
  border-color: var(--c-accent-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-dark:hover {
  background: var(--c-primary-d);
  border-color: var(--c-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8,145,178,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-ghost:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  transition: color var(--transition);
}
.nav.scrolled .nav-logo { color: var(--c-primary-d); }

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 4px;
  transition: background var(--transition);
}
.nav.scrolled .lang-switch { background: rgba(14,116,144,.08); }

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  text-transform: uppercase;
}
.lang-switch a .flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
  transition: box-shadow var(--transition);
}
.lang-switch a.active {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.lang-switch a.active .flag { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.lang-switch a:hover { color: #fff; }
.lang-switch a:hover .flag { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.nav.scrolled .lang-switch a { color: var(--c-text-3); }
.nav.scrolled .lang-switch a .flag { box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.nav.scrolled .lang-switch a.active {
  background: var(--c-primary);
  color: #fff;
}
.nav.scrolled .lang-switch a.active .flag { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.nav.scrolled .lang-switch a:hover { color: var(--c-text); }
.nav.scrolled .lang-switch a:hover .flag { box-shadow: 0 0 0 2px var(--c-primary-l); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--c-hero-from) 0%, var(--c-primary) 50%, var(--c-primary-l) 100%);
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Decorative parallax shapes — shared between hero & download */
.parallax-layer { position: absolute; inset: 0; pointer-events: none; }

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: .10;
  will-change: transform;
}
.hero .parallax-shape-1 { width: 600px; height: 600px; top: -100px; right: -150px; }
.hero .parallax-shape-2 { width: 400px; height: 400px; bottom: -50px; left: -100px; opacity: .07; }
.hero .parallax-shape-3 { width: 240px; height: 240px; top: 35%; left: 55%; opacity: .06; }

.download-card .parallax-shape-1 { width: 340px; height: 340px; top: -80px; right: -80px; opacity: .07; }
.download-card .parallax-shape-2 { width: 220px; height: 220px; bottom: -50px; left: -40px; opacity: .06; }
.download-card .parallax-shape-3 { width: 160px; height: 160px; top: 50%; left: 65%; opacity: .05; }

/* Floating dots */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  animation: float 8s ease-in-out infinite;
}
.hero-dot:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-dot:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; animation-duration: 10s; }
.hero-dot:nth-child(3) { top: 80%; left: 30%; animation-delay: 4s; animation-duration: 7s; }
.hero-dot:nth-child(4) { top: 30%; left: 70%; animation-delay: 1s; animation-duration: 9s; }
.hero-dot:nth-child(5) { top: 50%; left: 20%; animation-delay: 3s; animation-duration: 11s; }
.hero-dot:nth-child(6) { top: 10%; left: 50%; animation-delay: 5s; animation-duration: 6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .2; }
  50%      { transform: translateY(-30px) scale(1.5); opacity: .4; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero p {
  font-size: clamp(18px, 2.5vw, 22px);
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  line-height: 1.5;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Section base ---------- */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--c-text-2);
  max-width: 560px;
  line-height: 1.6;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary-l), var(--c-primary), var(--c-primary-l));
  opacity: .3;
}

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

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(8,145,178,.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover .step-num {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(8,145,178,.3);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,.9);
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-text);
}

/* ---------- Features (Tourists) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--c-border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8,145,178,.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,145,178,.08), rgba(34,211,238,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--c-primary);
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c-text);
}

.feature-card p {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* ---------- For Guides ---------- */
.guides-section {
  background: linear-gradient(135deg, #F0FDFA 0%, #ECFDF5 100%);
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.guides-features { display: flex; flex-direction: column; gap: 24px; }

.guide-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guide-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
  box-shadow: var(--shadow);
}
.guide-feature-icon svg { width: 22px; height: 22px; }

.guide-feature h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--c-text);
}
.guide-feature p {
  font-size: 14px;
  color: var(--c-text-2);
}

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

.guides-card {
  background: var(--c-surface);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.guides-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
}
.guides-card-icon svg { width: 36px; height: 36px; }

.guides-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--c-text);
}
.guides-card p {
  font-size: 15px;
  color: var(--c-text-2);
  margin-bottom: 28px;
}

/* ---------- Trust ---------- */
.trust-section {
  text-align: center;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8,145,178,.08), rgba(34,211,238,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--c-primary);
}
.trust-icon svg { width: 32px; height: 32px; }

.trust-section .section-subtitle {
  margin: 0 auto;
}

/* ---------- Download ---------- */
.download-section { text-align: center; }

.download-card {
  background: linear-gradient(135deg, var(--c-hero-from), var(--c-primary));
  border-radius: 24px;
  padding: 64px 40px;
  margin-top: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* decorative shapes now real DOM elements with parallax */

.download-inner {
  position: relative;
  z-index: 1;
}

.download-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 18px;
  opacity: .85;
  margin-bottom: 32px;
}

.download-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--c-text);
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.btn-download svg { width: 28px; height: 28px; }
.btn-download .btn-download-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  display: block;
  text-align: left;
}
.btn-download .btn-download-main {
  display: block;
  text-align: left;
}

.btn-download.coming-soon {
  opacity: .6;
  cursor: default;
}
.btn-download.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Footer ---------- */
.footer {
  background: #0F172A;
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.4);
}

.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

.footer-contact {
  font-size: 14px;
}
.footer-contact a {
  color: var(--c-primary-l);
  transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; }

/* ---------- Privacy / Terms pages ---------- */
.page-header {
  background: linear-gradient(135deg, var(--c-hero-from), var(--c-primary));
  padding: 120px 0 60px;
  color: #fff;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
}

.page-content {
  padding: 60px 0 100px;
}
.page-content .container {
  max-width: 720px;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--c-text);
}
.page-content p {
  margin-bottom: 16px;
  color: var(--c-text-2);
  line-height: 1.7;
}
.page-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}
.page-content li {
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  .steps::before { display: none; }
  .features { grid-template-columns: 1fr; max-width: 440px; }
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .guides-visual { order: -1; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }

  .steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .step-num { width: 64px; height: 64px; font-size: 24px; }

  .nav-logo { font-size: 20px; }
  .lang-switch a { padding: 4px 8px; font-size: 11px; gap: 4px; }
  .lang-switch a .flag { width: 18px; height: 18px; }

  .download-card { padding: 48px 24px; border-radius: 16px; }
  .download-card h3 { font-size: 26px; }
  .download-btns { flex-direction: column; align-items: center; }

  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
