/* ===== ATLAS KPSS – Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple:       #A78BFA;
  --purple-light: #C4B5FD;
  --purple-dark:  #7C3AED;
  --navy:         #1E1B4B;
  --navy-light:   #312E81;
  --white:        #FFFFFF;
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-400:     #9CA3AF;
  --gray-500:     #6B7280;
  --gray-600:     #4B5563;
  --gray-700:     #374151;
  --gray-800:     #1F2937;
  --gray-900:     #111827;
  --radius:       16px;
  --radius-sm:    12px;
  --shadow:       0 4px 24px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.10);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: .85rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  border-radius: 1px;
  transition: width var(--transition);
}

.navbar-links a:hover { color: var(--purple-dark); }
.navbar-links a:hover::after { width: 100%; }
.navbar-links a.active { color: var(--purple-dark); }
.navbar-links a.active::after { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle span + span { margin-top: 6px; }

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,27,75,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 32px;
  animation: fadeInUp .6s ease both;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  animation: fadeInUp .6s ease .1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp .6s ease .2s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--navy);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeInUp .6s ease .3s both;
  box-shadow: 0 4px 16px rgba(30,27,75,.2);
}

.hero-cta:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,27,75,.3);
}

.hero-cta svg { width: 20px; height: 20px; }

/* ---------- Features ---------- */
.features {
  padding: 120px 0;
  background: var(--white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.015em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.7;
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-subtitle { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(124,58,237,.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--purple-dark);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: .92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- App Preview ---------- */
.app-preview {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.app-preview-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.app-preview-text { flex: 1; }

.app-preview-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1) inset;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--gray-50);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.phone-screen .map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(167,139,250,.1), rgba(124,58,237,.06));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  position: relative;
  overflow: hidden;
}

.phone-screen .map-placeholder svg { width: 48px; height: 48px; opacity: .5; }

.phone-screen .screen-text {
  font-size: .75rem;
  color: var(--gray-500);
  text-align: center;
  font-weight: 500;
}

.checklist { list-style: none; margin-top: 32px; }

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: .95rem;
  color: var(--gray-700);
  font-weight: 500;
}

.checklist li .check {
  width: 24px; height: 24px;
  background: rgba(167,139,250,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-dark);
  flex-shrink: 0;
}

.checklist li .check svg { width: 14px; height: 14px; }

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 24px;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.cta-btn svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.footer-brand .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: .75rem;
}

.footer-desc {
  font-size: .85rem;
  color: var(--gray-500);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .85rem;
  color: var(--gray-500);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--purple-dark); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: .8rem;
  color: var(--gray-400);
}

/* ---------- Page Header (Legal & Contact pages) ---------- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1rem;
  color: var(--gray-500);
}

/* ---------- Legal Content ---------- */
.legal-content {
  padding: 60px 0 120px;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 48px;
}

.legal-card p {
  font-size: .95rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 20px;
}

.legal-card p:last-child { margin-bottom: 0; }

.legal-card a {
  color: var(--purple-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(124,58,237,.2);
  transition: border-color var(--transition);
}

.legal-card a:hover { border-color: var(--purple-dark); }

.legal-date {
  font-size: .82rem;
  color: var(--gray-400);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 60px 0 120px;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.contact-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(124,58,237,.08));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--purple-dark);
}

.contact-icon svg { width: 28px; height: 28px; }

.contact-card p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  font-size: .92rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(30,27,75,.2);
}

.contact-mail:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,27,75,.3);
  color: var(--white);
}

.contact-mail svg { width: 18px; height: 18px; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; gap: 20px; }

  .app-preview-inner { flex-direction: column; gap: 48px; text-align: center; }

  .phone-mockup { width: 240px; height: 480px; }

  .section-title { font-size: 1.8rem; }

  .cta-box { padding: 56px 28px; }
  .cta-box h2 { font-size: 1.6rem; }

  .legal-card { padding: 32px 24px; }
  .contact-card { padding: 40px 28px; }

  .navbar-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .navbar-links.open { transform: translateY(0); }

  .menu-toggle { display: flex; flex-direction: column; gap: 0; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-desc { margin: 0 auto; }
  .footer-links { justify-content: center; gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .hero-cta { padding: 14px 28px; font-size: .88rem; }
}
