:root {
  --primary: #0166AF;
  --primary-dark: #015294;
  --primary-light: #0288D1;
  --accent: #10B981;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --font: 'DM Sans', sans-serif;
}

[data-theme="dark"] {
  --bg: #0A0A0B;
  --bg-alt: #111113;
  --bg-card: #18181B;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --border: #27272A;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-alt);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.5s, color 0.5s;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.hero {
  min-height: auto;
  padding: 80px 2rem 40px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.hero-visual {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
}

.hero-text {
  grid-column: 2;
  grid-row: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.hero-version {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-version a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-version a:hover {
  color: var(--primary-dark);
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-main:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-main svg { width: 20px; height: 20px; }

a[href^="mailto:"]:not(.control-card) {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 30px; background: var(--border); }

.phone-wrapper {
  position: relative;
  width: fit-content;
  height: fit-content;
  max-width: 450px;
  max-height: 1500px;
  overflow: visible;
}

.hero-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 1500px;
  object-fit: contain;
  animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.scroll-indicator {
  display: none;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-brand img { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 0.5rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }
  .hero-text {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-desc { max-width: 100%; }
  .hero-actions, .hero-stats { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.75rem; padding-top: 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .phone-wrapper { max-width: 100%; max-height: none; }
  .scroll-indicator {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
  }
  .scroll-indicator svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    animation: bounceDown 1.8s ease-in-out infinite;
  }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
