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

:root {
  --color-bg: #080f1f;
  --color-surface: #0d1b3e;
  --color-surface-2: #122050;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-glow: rgba(59, 130, 246, 0.25);
  --color-accent: #a78bfa;
  --color-accent-glow: rgba(167, 139, 250, 0.2);
  --color-success: #34d399;
  --color-warning: #f59e0b;
  --color-text: #f0f4ff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-pill: 100px;
  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-text);
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ===== Gradient Background ===== */
.bg-gradient-radial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(167, 139, 250, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(8, 15, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 160px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 16px;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-light);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: var(--color-text-secondary);
  max-width: 520px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  justify-content: flex-start;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ===== Phone Mockup ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 260px;
  height: 560px;
  background: #080f1f;
  border-radius: 44px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 80px 120px rgba(124, 58, 237, 0.18);
  overflow: hidden;
  position: relative;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 42px;
}

.phone-notch {
  display: none;
}

.phone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  padding: 44px 16px 20px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.screen-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.screen-subtitle {
  font-size: 0.6rem;
  color: var(--color-text-secondary);
}

.screen-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.screen-balance-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 14px;
}

.screen-balance-label {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.screen-balance-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.screen-balance-row {
  display: flex;
  gap: 6px;
}

.screen-badge {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}

.screen-badge-label {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.screen-badge-val {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.screen-badge-val.ok {
  color: var(--color-success);
}

.screen-badge-val.warn {
  color: var(--color-warning);
}

.screen-deadline-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deadline-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.deadline-icon.ep {
  background: rgba(124, 58, 237, 0.2);
}

.deadline-icon.esv {
  background: rgba(37, 99, 235, 0.2);
}

.deadline-icon.vz {
  background: rgba(217, 119, 6, 0.2);
}

.deadline-info {
  flex: 1;
}

.deadline-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text);
}

.deadline-date {
  font-size: 0.55rem;
  color: var(--color-text-secondary);
}

.deadline-days {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.deadline-days.soon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.deadline-days.ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--color-success);
}

/* ── Redesigned phone screen ── */
.screen-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #4C2889);
  flex-shrink: 0;
}

.screen-income-card {
  background: linear-gradient(135deg, rgba(30,41,80,0.9), rgba(20,28,60,0.95));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.screen-income-label {
  font-size: 0.48rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.screen-income-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}

.screen-income-amount .uah-sign {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}

.screen-tax-row {
  display: flex;
  gap: 5px;
}

.screen-tax-badge {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 5px 6px;
  text-align: center;
}

.screen-tax-badge .stb-name {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.screen-tax-badge.ep .stb-val  { color: #a78bfa; font-size: 0.6rem; font-weight: 700; }
.screen-tax-badge.esv .stb-val { color: #60a5fa; font-size: 0.6rem; font-weight: 700; }
.screen-tax-badge.vz-paid .stb-val { color: rgba(255,255,255,0.5); font-size: 0.55rem; font-weight: 600; }
.screen-tax-badge .stb-val.paid { color: #34d399; font-size: 0.55rem; font-weight: 700; }

.screen-section-title {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.screen-dl-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.screen-dl-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-dl-info {
  flex: 1;
  min-width: 0;
}

.screen-dl-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-dl-date {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
}

.screen-dl-badge {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.screen-dl-badge.urgent {
  background: rgba(245,158,11,0.18);
  color: #fbbf24;
}

.screen-dl-badge.ok {
  background: rgba(52,211,153,0.12);
  color: #34d399;
}

/* ── Phone Slider ── */
.phone-slider {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.phone-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 20, 50, 0.6);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.phone-arrow-left  { left: -56px; }
.phone-arrow-right { right: -56px; }

.phone-arrow:hover {
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(124, 58, 237, 0.7);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.phone-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.phone-screenshot {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.phone-slide-label {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
  letter-spacing: 0.01em;
  min-height: 1.2em;
}

.phone-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 10px;
}

.phone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.phone-dot.active {
  background: #7C3AED;
  transform: scale(1.25);
}

.phone-dot:hover {
  background: rgba(124, 58, 237, 0.5);
}

.phone-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.phone-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.phone-orbit-1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-orbit-2 {
  width: 550px;
  height: 550px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-float-card {
  position: absolute;
  background: rgba(13, 27, 62, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
  z-index: 5;
}

/* позиції карток за слайдом */
.phone-float-card-top-left {
  left: -130px;
  top: 80px;
  animation: float-left 4s ease-in-out infinite;
}

.phone-float-card-bottom-right {
  right: -120px;
  bottom: 120px;
  animation: float-right 5s ease-in-out infinite;
}

.phone-float-card-top-right {
  right: -120px;
  top: 80px;
  animation: float-right 4s ease-in-out infinite;
}

.phone-float-card-bottom-left {
  left: -130px;
  bottom: 120px;
  animation: float-left 5s ease-in-out infinite;
}

/* overlay на весь phone-mockup */
#float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 5;
}
#float-cards.cards-out {
  opacity: 0;
}

/* картки всередині overlay — pointer-events повертаємо */
#float-cards .phone-float-card {
  pointer-events: auto;
}

@keyframes float-left {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float-right {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

.float-card-label {
  font-size: 0.68rem;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.float-card-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.float-card-sub {
  font-size: 0.62rem;
  margin-top: 2px;
}

.float-card-sub.green { color: var(--color-success); }
.float-card-sub.blue { color: var(--color-primary-light); }

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 14px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* ===== Features Grid ===== */
.features-section {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.08);
}

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

.feature-card.featured {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.05);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon.blue   { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.feature-icon.purple { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.feature-icon.green  { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.feature-icon.yellow { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.feature-icon.pink   { background: rgba(244, 114, 182, 0.12); color: #f472b6; }
.feature-icon.cyan   { background: rgba(34, 211, 238, 0.12); color: #22d3ee; }

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== How it works ===== */
.how-section {
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0d1b3e;
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-light);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

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

/* ===== Download / CTA ===== */
.download-section {
  position: relative;
  z-index: 1;
}

.download-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-radius: 32px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* animated border via pseudo-element underneath */
  isolation: isolate;
}

/* dark fill over the spinning gradient — creates the border-only effect */
.download-card::before {
  content: '';
  position: absolute;
  inset: 5.5px;
  border-radius: 31px;
  background: linear-gradient(135deg, rgba(10, 18, 44, 0.98) 0%, rgba(14, 22, 52, 0.98) 100%);
  z-index: 0;
  pointer-events: none;
}

/* spinning conic gradient fills the gap between ::before and card edge */
.download-card::after {
  content: '';
  position: absolute;
  inset: -5.5px;
  border-radius: 34px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0deg,
    transparent 60deg,
    rgba(96, 165, 250, 1) 100deg,
    rgba(167, 139, 250, 1) 140deg,
    transparent 180deg,
    transparent 360deg
  );
  z-index: -1;
  animation: border-spin 4s linear infinite;
}

.download-card > * {
  position: relative;
  z-index: 1;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}


.download-card h2 {
  margin-bottom: 16px;
}

.download-card p {
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.store-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.store-btn-disabled:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
  box-shadow: none;
}

.store-btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  margin-left: 4px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.store-btn-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.store-btn-text {
  text-align: left;
}

.store-btn-sub {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  line-height: 1;
  margin-bottom: 2px;
}

.store-btn-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.download-version {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ===== Tax info strip ===== */
.tax-info-section {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tax-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tax-info-item {
  padding: 20px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(13, 27, 62, 0.4);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: border-color var(--transition);
}

.tax-info-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.tax-info-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tax-info-icon-wrap.ep-bg   { background: rgba(124, 58, 237, 0.15); }
.tax-info-icon-wrap.esv-bg  { background: rgba(37, 99, 235, 0.15);  }
.tax-info-icon-wrap.vz-bg   { background: rgba(217, 119, 6, 0.15);  }
.tax-info-icon-wrap.decl-bg { background: rgba(16, 185, 129, 0.12); }

.tax-info-body {
  flex: 1;
  min-width: 0;
}

.tax-info-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.tax-info-desc {
  font-size: 0.77rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.tax-info-rate {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.tax-info-rate.ep { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.tax-info-rate.esv { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.tax-info-rate.vz { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
.tax-info-rate.decl { background: rgba(52, 211, 153, 0.12); color: #34d399; }

/* ===== Testimonials ===== */
.testimonials-section {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.testimonial-stars {
  color: var(--color-warning);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ===== FAQ ===== */
.faq-section {
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(13, 27, 62, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary-light);
}

.faq-chevron {
  transition: transform var(--transition);
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transform-origin: center;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 28px 22px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
  max-width: 220px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
}

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 20, 50, 0.8);
  border: 1.5px solid rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.2);
  z-index: 99;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, border-color 0.2s;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(124, 58, 237, 0.8);
  color: #fff;
}

/* ===== Utility ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat { text-align: center; }

  .hero-visual { order: -1; }

  .phone-float-card { display: none; }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before { display: none; }

  .tax-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .container { padding: 0 16px; }

  section { padding: 56px 0; }

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

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

  .tax-info-grid {
    grid-template-columns: 1fr;
  }

  .tax-info-item {
    padding: 16px;
  }

  .download-card {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }

  .phone-mockup { width: 240px; }
}
