/* BillCraft — Autonity-inspired Dark SaaS Landing Page */
:root {
  --bg: #05050A;
  --bg-card: #0D0D14;
  --bg-card-hover: #12121C;
  --text: #F9FAFB;
  --text-muted: #6B7280;
  --text-dim: #374151;
  --accent: #FF4D6A;
  --accent-hover: #FF6B84;
  --accent-glow: rgba(255, 77, 106, 0.15);
  --accent-warm: #FFB380;
  --cyan: #00F0FF;
  --border: #1A1A2E;
  --border-hover: rgba(255, 77, 106, 0.4);
  --radius: 20px;
  --max-w: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* ===== BACKGROUND EFFECTS ===== */

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Dot grid pattern overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    radial-gradient(circle 1px at center, rgba(255,255,255,0.8) 0%, transparent 1px);
  background-size: 40px 40px;
}

/* Glow orbs */
.glow-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-orb--pink {
  width: 500px;
  height: 500px;
  background: rgba(255, 77, 106, 0.10);
  top: 5%;
  left: 10%;
  animation: orbFloat1 25s ease-in-out infinite alternate;
}

.glow-orb--cyan {
  width: 400px;
  height: 400px;
  background: rgba(0, 240, 255, 0.08);
  top: 45%;
  right: 5%;
  animation: orbFloat2 30s ease-in-out infinite alternate;
}

.glow-orb--warm {
  width: 450px;
  height: 450px;
  background: rgba(255, 179, 128, 0.08);
  bottom: 10%;
  left: 35%;
  animation: orbFloat3 35s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 80px) scale(0.95); }
  100% { transform: translate(40px, -20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 60px) scale(1.05); }
  66% { transform: translate(40px, -40px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(0.95); }
  66% { transform: translate(-60px, 30px) scale(1.08); }
  100% { transform: translate(20px, -40px) scale(1); }
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

.particles span:nth-child(1) { left: 3%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: 0s; }
.particles span:nth-child(2) { left: 8%; width: 2px; height: 2px; animation-duration: 28s; animation-delay: 2s; }
.particles span:nth-child(3) { left: 14%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 4s; }
.particles span:nth-child(4) { left: 20%; width: 2px; height: 2px; animation-duration: 35s; animation-delay: 1s; }
.particles span:nth-child(5) { left: 26%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 6s; background: rgba(255,77,106,0.5); }
.particles span:nth-child(6) { left: 32%; width: 3px; height: 3px; animation-duration: 30s; animation-delay: 3s; }
.particles span:nth-child(7) { left: 37%; width: 2px; height: 2px; animation-duration: 25s; animation-delay: 8s; }
.particles span:nth-child(8) { left: 42%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 0s; background: rgba(0,240,255,0.4); }
.particles span:nth-child(9) { left: 47%; width: 3px; height: 3px; animation-duration: 32s; animation-delay: 5s; }
.particles span:nth-child(10) { left: 52%; width: 2px; height: 2px; animation-duration: 22s; animation-delay: 7s; }
.particles span:nth-child(11) { left: 56%; width: 4px; height: 4px; animation-duration: 27s; animation-delay: 2s; background: rgba(255,179,128,0.5); }
.particles span:nth-child(12) { left: 61%; width: 3px; height: 3px; animation-duration: 19s; animation-delay: 9s; }
.particles span:nth-child(13) { left: 65%; width: 2px; height: 2px; animation-duration: 36s; animation-delay: 1s; }
.particles span:nth-child(14) { left: 70%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: 4s; background: rgba(255,77,106,0.4); }
.particles span:nth-child(15) { left: 75%; width: 3px; height: 3px; animation-duration: 28s; animation-delay: 6s; }
.particles span:nth-child(16) { left: 79%; width: 2px; height: 2px; animation-duration: 33s; animation-delay: 0s; }
.particles span:nth-child(17) { left: 83%; width: 4px; height: 4px; animation-duration: 17s; animation-delay: 3s; background: rgba(0,240,255,0.3); }
.particles span:nth-child(18) { left: 87%; width: 3px; height: 3px; animation-duration: 24s; animation-delay: 8s; }
.particles span:nth-child(19) { left: 91%; width: 2px; height: 2px; animation-duration: 29s; animation-delay: 5s; }
.particles span:nth-child(20) { left: 95%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: 2s; }

/* ===== BASE STYLES ===== */
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.4em; }

/* Utility */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.section-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  text-align: center;
  position: relative;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 77, 106, 0.3), 0 0 60px rgba(255, 77, 106, 0.1);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 40px rgba(255, 77, 106, 0.45), 0 0 80px rgba(255, 77, 106, 0.15);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 32px;
  position: relative;
}

.navbar .logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-right: auto;
  padding-left: 0;
  flex-shrink: 0;
}
.navbar .logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-cta {
  margin-left: 12px;
  padding: 10px 24px !important;
  font-size: 14px !important;
  border-radius: 100px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 10px 0 20px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 77, 106, 0.3);
  background: rgba(255, 77, 106, 0.08);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 68px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero > .container > p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-buttons .btn-primary {
  font-size: 18px;
  padding: 16px 36px;
}
.hero-buttons .btn-outline {
  padding: 16px 32px;
}

.trust-bar {
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-bar span {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-weight: 500;
  font-size: 13px;
}

/* Dashboard Mockup */
.dashboard-mockup {
  margin-top: 64px;
  perspective: 1200px;
}

.mockup-frame {
  max-width: 900px;
  margin: 0 auto;
  background: #0D0D14;
  border: 1px solid #1A1A2E;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(255, 77, 106, 0.12), 0 0 0 1px rgba(255, 77, 106, 0.05);
  transform: rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateX(2deg) translateY(0); }
  50% { transform: rotateX(2deg) translateY(-12px); }
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #0A0A12;
  border-bottom: 1px solid #1A1A2E;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 16px;
  border-radius: 6px;
  margin-left: 8px;
}

.mockup-body {
  padding: 32px;
  min-height: 280px;
  display: flex;
  gap: 24px;
}

.mockup-sidebar {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.mockup-sidebar-item {
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}
.mockup-sidebar-item:first-child {
  background: rgba(255, 77, 106, 0.15);
}
.mockup-sidebar-item:nth-child(2) { width: 85%; }
.mockup-sidebar-item:nth-child(3) { width: 70%; }
.mockup-sidebar-item:nth-child(4) { width: 90%; }
.mockup-sidebar-item:nth-child(5) { width: 60%; }

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-title-block {
  height: 16px;
  width: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.mockup-btn-block {
  height: 32px;
  width: 120px;
  background: var(--accent);
  border-radius: 8px;
  opacity: 0.7;
}

.mockup-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mockup-cell {
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  flex: 1;
}
.mockup-row:first-child .mockup-cell {
  background: rgba(255, 255, 255, 0.08);
  height: 12px;
}
.mockup-cell:nth-child(1) { flex: 2; }
.mockup-cell:nth-child(4) { flex: 0.5; }

.mockup-total-bar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #1A1A2E;
}

.mockup-total-label {
  height: 12px;
  width: 80px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.mockup-total-value {
  height: 14px;
  width: 100px;
  background: rgba(255, 77, 106, 0.2);
  border-radius: 4px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 60px 0;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.stats-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-number .accent { color: var(--accent); }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ===== FEATURES BENTO GRID ===== */
.features {
  padding: 100px 0;
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated gradient border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--gradient-angle, 0deg), var(--accent), var(--cyan), var(--accent-warm), var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  animation: rotateGradient 3s linear infinite;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--bg-card);
  z-index: -1;
}

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

@keyframes rotateGradient {
  to { --gradient-angle: 360deg; }
}

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

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 77, 106, 0.15);
}

.feature-card.large {
  grid-column: span 2;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 18px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 106, 0.1);
  border-radius: 50%;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

/* Connecting dashed line */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  border-top: 2px dashed rgba(255, 77, 106, 0.2);
  z-index: 0;
}

.step {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 77, 106, 0.1);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 24px rgba(255, 77, 106, 0.35);
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.step p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ===== TEMPLATES ===== */
.templates {
  padding: 100px 0;
  position: relative;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--gradient-angle, 0deg), var(--accent), var(--cyan), var(--accent-warm), var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  animation: rotateGradient 3s linear infinite;
}
.template-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--bg-card);
  z-index: -1;
}
.template-card:hover::before { opacity: 1; }

.template-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 77, 106, 0.15);
}

.template-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.template-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.template-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  position: relative;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 3px solid transparent;
}

.testimonial-card:hover {
  border-left-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 77, 106, 0.1);
}

.testimonial-card .stars {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.testimonial-card .role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== DOWNLOAD APP ===== */
.download-app {
  padding: 100px 0;
  position: relative;
}

.download-content {
  text-align: center;
}

.phone-mockup {
  width: 240px;
  height: 460px;
  background: #0A0A12;
  border: 2px solid #1A1A2E;
  border-radius: 36px;
  margin: 0 auto 40px;
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(255, 77, 106, 0.1);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #05050A;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-screen-bar {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}
.phone-screen-bar:first-child {
  width: 60%;
  background: rgba(255, 77, 106, 0.2);
}
.phone-screen-bar:nth-child(2) { width: 80%; }
.phone-screen-bar:nth-child(3) { width: 50%; }
.phone-screen-bar:nth-child(4) { width: 90%; }
.phone-screen-bar:nth-child(5) { width: 70%; }
.phone-screen-bar:nth-child(6) { width: 40%; }
.phone-screen-bar:nth-child(7) { width: 85%; }

.phone-screen-btn {
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  opacity: 0.6;
  margin-top: 8px;
}

.download-specs {
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 14px;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  position: relative;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.open {
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 24px rgba(255, 77, 106, 0.08);
}

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

.faq-q:hover { color: var(--accent); }

.faq-q::after {
  content: '+';
  font-size: 24px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a p {
  padding: 0 28px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 0 24px;
  margin: 60px 0;
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  filter: blur(80px);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  bottom: -80px;
  right: -60px;
  pointer-events: none;
}

.cta-inner h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.cta-inner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .btn {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 36px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.cta-inner .btn:hover {
  background: #F8F8F8;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ===== BLOG PREVIEW ===== */
.blog-section {
  padding: 100px 0;
  position: relative;
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 77, 106, 0.1);
}

.blog-card-body { padding: 28px; }

.blog-card-body .tag {
  display: inline-block;
  background: rgba(255, 77, 106, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 77, 106, 0.15);
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--text);
  transition: color 0.3s;
}
.blog-card-body h3 a:hover { color: var(--accent); }

.blog-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.blog-card-body .meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== FOOTER ===== */
.footer {
  background: #030308;
  color: var(--text-muted);
  padding: 64px 0 32px;
  position: relative;
  border-top: 1px solid transparent;
  background-image: linear-gradient(#030308, #030308), linear-gradient(90deg, transparent, var(--accent), var(--cyan), var(--accent-warm), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

.footer h4 {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s;
}
.footer ul a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== ARTICLE (unchanged pages) ===== */
.article { padding: 60px 0; }
.article-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.article-header h1 { font-size: 36px; line-height: 1.25; margin-bottom: 14px; color: var(--text); }
.article-header .meta { color: var(--text-muted); font-size: 14px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 24px; margin: 36px 0 14px; color: var(--text); }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.article-body p { margin-bottom: 18px; color: var(--text-muted); }
.article-body ul, .article-body ol { margin-bottom: 18px; color: var(--text-muted); }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 16px 20px;
  background: var(--bg-card); margin: 24px 0; border-radius: 0 8px 8px 0;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-body th, .article-body td {
  padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 14px;
  color: var(--text-muted);
}
.article-body th { background: var(--bg-card); font-weight: 600; color: var(--text); }
.info-box {
  background: rgba(255,77,106,0.05);
  border: 1px solid rgba(255,77,106,0.1);
  border-radius: var(--radius); padding: 24px;
  margin: 24px 0;
}
.info-box h4 { margin-bottom: 8px; color: var(--text); }

/* Legal pages */
.legal { padding: 60px 0; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; color: var(--text); }
.legal .updated { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; color: var(--text); }
.legal p, .legal li { font-size: 15px; margin-bottom: 14px; color: var(--text-muted); }

/* About page */
.about-hero {
  padding: 80px 0; text-align: center;
  background: transparent;
}
.about-hero h1 { font-size: 40px; margin-bottom: 16px; color: var(--text); }
.about-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.values { padding: 80px 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 28px; }
.value-card {
  text-align: center; padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.value-card .icon { font-size: 40px; margin-bottom: 12px; }
.value-card h3 { margin-bottom: 8px; color: var(--text); }
.value-card p { font-size: 15px; color: var(--text-muted); }

/* Contact page */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-size: 28px; margin-bottom: 16px; color: var(--text); }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-detail .icon { font-size: 24px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; margin-bottom: 16px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(255,77,106,0.1);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--text-muted);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card.large {
    grid-column: span 2;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.02em; }
  .hero { padding: 16px 0 40px; }
  .section-title { font-size: 28px; }

  .nav-links {
    display: none;
    position: static;
    transform: none;
  }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card.large {
    grid-column: span 1;
  }

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

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

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

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

  .stats-grid {
    flex-wrap: wrap;
  }
  .stat-item {
    flex: 0 0 50%;
  }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-number { font-size: 36px; }

  .hero-buttons { flex-direction: column; align-items: center; }
  .trust-bar { flex-direction: column; align-items: center; }

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

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

  .mockup-body { flex-direction: column; }
  .mockup-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .mockup-sidebar-item { flex: 1; min-width: 40%; }

  .cta-inner {
    padding: 48px 24px;
  }
  .cta-inner h2 { font-size: 28px; }

  .glow-orb--pink { width: 280px; height: 280px; }
  .glow-orb--cyan { width: 240px; height: 240px; }
  .glow-orb--warm { width: 260px; height: 260px; }

  .phone-mockup {
    width: 200px;
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
  .template-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 0 0 100%; }
  .stat-item::after { display: none !important; }
}

/* Device Scene Animations */
@keyframes heroFloat {
  0%, 100% { transform: translateX(-52%) translateY(0) rotateX(4deg) rotateY(-8deg); }
  50% { transform: translateX(-52%) translateY(-10px) rotateX(4deg) rotateY(-8deg); }
}
@keyframes iphoneFloat {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-10px); }
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.device-scene-wrap { perspective: 2400px; }
@media (max-width: 768px) {
  .device-scene-wrap { height: 400px !important; }
}
