/* =============================================
   TusMapp Website — Shared Styles
   ============================================= */

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

:root {
  --blue-600:  #2563EB;
  --blue-500:  #3B82F6;
  --blue-400:  #60A5FA;
  --blue-100:  #DBEAFE;
  --blue-50:   #EFF6FF;
  --indigo:    #667eea;
  --dark:      #1e3a5f;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.12);
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utility ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 99px;
  background: var(--blue-50); color: var(--blue-600);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  border: 1.5px solid var(--blue-100);
}
.section-label {
  text-align: center; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.15; text-align: center;
}
.section-desc {
  text-align: center; max-width: 600px; margin: 16px auto 0;
  color: var(--slate-500); font-size: 1.05rem; line-height: 1.7;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(203,213,225,.5);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 9px; }
.nav-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.nav-logo-text span { color: var(--blue-600); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 7px 16px; border-radius: var(--radius-sm);
  color: var(--slate-600); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.nav-links a:hover { background: var(--slate-100); color: var(--slate-900); }
.nav-cta {
  padding: 8px 20px !important; border-radius: 99px !important;
  background: var(--blue-600) !important; color: var(--white) !important;
  font-weight: 600 !important; box-shadow: 0 2px 8px rgba(37,99,235,.3) !important;
}
.nav-cta:hover { background: #1d4ed8 !important; color: var(--white) !important; transform: translateY(-1px); }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-menu-btn svg { width: 22px; height: 22px; color: var(--slate-700); }

/* ---- HERO ---- */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, #f0f7ff 0%, var(--white) 55%, #f0f0ff 100%);
  overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,126,234,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.1;
  color: var(--slate-900);
}
.hero-title .accent { color: var(--blue-600); }
.hero-sub {
  margin-top: 20px; font-size: 1.1rem; color: var(--slate-500);
  line-height: 1.75; max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue-600) 100%);
  color: var(--white); font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px;
  background: var(--white); color: var(--slate-700);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 2px solid var(--slate-200); transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-1px); }
.hero-stats {
  display: flex; gap: 32px; margin-top: 44px;
  padding-top: 32px; border-top: 1px solid var(--slate-200);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--slate-900); letter-spacing: -.03em; }
.stat-label { font-size: .8rem; color: var(--slate-500); font-weight: 500; }
/* Phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-wrap {
  position: relative; width: 280px;
  filter: drop-shadow(0 32px 64px rgba(37,99,235,.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.phone-frame {
  width: 280px; height: 560px;
  background: linear-gradient(160deg, #1e3a5f 0%, #0f172a 100%);
  border-radius: 44px;
  border: 3px solid rgba(255,255,255,.15);
  overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #000;
  border-radius: 14px; z-index: 5;
}
.phone-screen {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 20px 20px;
}
.phone-logo-area { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-app-logo {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue-600) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.phone-app-logo img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.phone-app-name { color: var(--white); font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.phone-cards { margin-top: 20px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.phone-card {
  background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
}
.phone-card-title { color: rgba(255,255,255,.5); font-size: .65rem; font-weight: 500; margin-bottom: 4px; }
.phone-card-value { color: var(--white); font-size: .9rem; font-weight: 700; }
.phone-card-bar { margin-top: 8px; height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.phone-card-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--blue-500)); }
.phone-bottom { margin-top: auto; width: 100%; }
.phone-bottom-nav {
  display: flex; justify-content: space-around;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.phone-bottom-nav span { color: rgba(255,255,255,.4); font-size: .65rem; }
.phone-bottom-nav span.active { color: var(--blue-400); }

/* ---- FEATURES ---- */
.features { padding: 100px 0; background: var(--white); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px;
}
.feature-card {
  padding: 32px 28px; border-radius: var(--radius-xl);
  background: var(--slate-50); border: 1.5px solid var(--slate-200);
  transition: var(--transition); cursor: default;
}
.feature-card:hover {
  border-color: var(--blue-200, #bfdbfe);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: var(--white);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--blue-600) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.feature-icon svg { width: 26px; height: 26px; color: white; }
.feature-title { font-size: 1.08rem; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.feature-desc { font-size: .9rem; color: var(--slate-500); line-height: 1.65; }

/* ---- HOW IT WORKS ---- */
.how { padding: 100px 0; background: var(--slate-50); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 60px; }
.step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 36px 24px; border-radius: var(--radius-xl);
  background: var(--white); border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--blue-600));
  color: var(--white); font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--slate-800); }
.step-desc { font-size: .88rem; color: var(--slate-500); line-height: 1.65; }

/* ---- PRO SECTION ---- */
.pro-section { padding: 100px 0; background: var(--white); }
.pro-card {
  background: linear-gradient(135deg, var(--dark) 0%, #162844 50%, #1a1a3e 100%);
  border-radius: var(--radius-xl); padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  overflow: hidden; position: relative;
}
.pro-card::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,126,234,.2) 0%, transparent 70%);
  pointer-events: none;
}
.pro-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); color: #fbbf24;
  border: 1.5px solid rgba(251,191,36,.3); border-radius: 99px;
  padding: 5px 14px; font-size: .78rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: .04em;
}
.pro-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800;
  color: var(--white); letter-spacing: -.03em; line-height: 1.2;
}
.pro-desc { margin-top: 16px; color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.7; }
.pro-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-pro {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 99px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e1200; font-weight: 700; font-size: .92rem;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(251,191,36,.35);
}
.btn-pro:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251,191,36,.45); }
.pro-features { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pro-features li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-size: .95rem;
}
.pro-features li::before {
  content: ''; width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255,255,255,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ---- DOWNLOAD ---- */
.download { padding: 100px 0; background: var(--slate-50); }
.download-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.store-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: var(--radius-md);
  background: var(--slate-900); color: var(--white);
  text-decoration: none; transition: var(--transition);
  border: 1.5px solid var(--slate-700);
  box-shadow: var(--shadow-md);
}
.store-btn:hover { background: var(--slate-800); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-btn-sub { font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 400; }
.store-btn-name { font-size: 1rem; font-weight: 700; line-height: 1.2; }

/* ---- FOOTER ---- */
footer {
  background: var(--slate-900); color: rgba(255,255,255,.65);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo img { width: 34px; height: 34px; border-radius: 8px; }
.footer-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-brand-desc { font-size: .88rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,.55); font-size: .88rem; text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px; display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}

/* ---- LEGAL PAGE ---- */
.legal-hero {
  padding: 120px 0 60px;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
}
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; color: var(--slate-900); }
.legal-hero p { margin-top: 8px; color: var(--slate-500); font-size: 1rem; }
.legal-body { padding: 60px 0 100px; }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.legal-toc {
  position: sticky; top: 90px;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--slate-50); border: 1.5px solid var(--slate-200);
}
.legal-toc h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-400); margin-bottom: 14px; }
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legal-toc ul a {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-size: .82rem; color: var(--slate-600); text-decoration: none; transition: var(--transition);
}
.legal-toc ul a:hover { background: var(--blue-50); color: var(--blue-600); }
.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--slate-900);
  margin-top: 44px; margin-bottom: 14px; letter-spacing: -.02em;
  padding-top: 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem; font-weight: 600; color: var(--slate-800);
  margin-top: 24px; margin-bottom: 10px;
}
.legal-content p { color: var(--slate-600); line-height: 1.8; margin-bottom: 14px; font-size: .95rem; }
.legal-content ul { margin: 10px 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-content ul li { color: var(--slate-600); font-size: .95rem; line-height: 1.7; }
.legal-content strong { color: var(--slate-800); font-weight: 600; }
.legal-content .legal-divider { height: 1px; background: var(--slate-200); margin: 32px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-sub { margin: 20px auto 0; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pro-card { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .hero { padding: 110px 0 80px; }
  .phone-wrap { width: 220px; }
  .phone-frame { width: 220px; height: 440px; }
}
