:root {
  --bg-primary: #151316;
  --bg-secondary: #1F1B24;
  --bg-tertiary: #2A2533;
  --bg-card: #1F1B24;
  --bg-glass: rgba(31, 27, 36, 0.8);
  
  --primary: #A041D6;
  --primary-dark: #7C3AED;
  --secondary: #8B5CF6;
  --accent: #F59E0B;
  
  --success: #10B981;
  --text-primary: #EFEFEF;
  --text-secondary: #A4A4A4;
  --text-light: #B6B6B6;
  --text-muted: #8B8B8B;
  
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.05);
  --border-accent: #A041D6;
  
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  background: #000000;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(160, 65, 214, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: 2rem clamp(1rem, 5vw, 4rem) 4rem;
  background: linear-gradient(135deg, #000000 0%, #151316 50%, #1F1B24 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(160, 65, 214, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(21, 19, 22, 0.6) 100%);
  backdrop-filter: blur(1px);
  z-index: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 1rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(160, 65, 214, 0.3);
  border: 2px solid rgba(160, 65, 214, 0.2);
}

.nav__cta {
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(160, 65, 214, 0.4);
  position: relative;
  overflow: hidden;
}

.nav__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav__cta:hover::before {
  left: 100%;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(160, 65, 214, 0.6);
}

.hero__body {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

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

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(160, 65, 214, 0.1);
  border: 1px solid rgba(160, 65, 214, 0.2);
  border-radius: 20px;
}

.hero__content h1 {
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(160, 65, 214, 0.4);
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(160, 65, 214, 0.6);
}

.btn.secondary {
  background: rgba(160, 65, 214, 0.1);
  border: 1px solid rgba(160, 65, 214, 0.3);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(160, 65, 214, 0.2);
  border-color: rgba(160, 65, 214, 0.5);
  transform: translateY(-2px);
}

.hero__visual {
  display: grid;
  place-items: center;
  position: relative;
}

.phone-frame {
  width: clamp(240px, 42vw, 360px);
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  padding: 1.8rem 1rem;
  background: linear-gradient(135deg, rgba(31, 27, 36, 0.9), rgba(42, 37, 51, 0.8));
  border: 2px solid rgba(160, 65, 214, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(160, 65, 214, 0.2),
    inset 0 0 40px rgba(160, 65, 214, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(160, 65, 214, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  position: relative;
  z-index: 0;
  filter: brightness(1.05) contrast(1.05);
}

.phone-notch {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

main {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background: linear-gradient(180deg, #000000 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
  position: relative;
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(160, 65, 214, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main > * {
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-primary);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(160, 65, 214, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(160, 65, 214, 0.3);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(160, 65, 214, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--text-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.calculator {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
  border-radius: 32px;
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  border: 1px solid var(--border-primary);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(160, 65, 214, 0.1);
  position: relative;
  overflow: hidden;
}

.calculator::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(160, 65, 214, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.calc-widget {
  position: relative;
  z-index: 1;
}

.calc-widget label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.calc-widget input[type='range'] {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 1.5rem 0;
}

.calc-widget input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 
    0 4px 12px rgba(160, 65, 214, 0.5),
    0 0 20px rgba(160, 65, 214, 0.3);
  transition: all 0.2s ease;
}

.calc-widget input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 
    0 6px 20px rgba(160, 65, 214, 0.7),
    0 0 30px rgba(160, 65, 214, 0.5);
}

.calc-widget input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(160, 65, 214, 0.5);
}

.calc-widget__values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.calc-widget__values span:first-child {
  color: var(--text-primary);
  font-size: 1.5rem;
}

.profit-tag {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  padding: 0.5rem 1rem;
  border-radius: 12px;
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 1rem;
}

.calc-widget__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.download {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 3rem;
}

.download-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
  padding: 2rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(160, 65, 214, 0.1);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(160, 65, 214, 0.1), transparent);
  transition: left 0.5s;
}

.download-card:hover::before {
  left: 100%;
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: rgba(160, 65, 214, 0.4);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(160, 65, 214, 0.3);
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.download-card > span {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(160, 65, 214, 0.4);
  transition: all 0.3s ease;
}

.download-card:hover > span {
  box-shadow: 0 6px 30px rgba(160, 65, 214, 0.6);
  transform: scale(1.05);
}

footer {
  padding: 3rem clamp(1rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  background: #000000;
  border-top: 1px solid var(--border-secondary);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav__cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero__body {
    margin-top: 2rem;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .download-card > span {
    width: 100%;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .calculator {
    grid-template-columns: 1fr;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(160, 65, 214, 0.3);
  color: var(--text-primary);
}
