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

:root {
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --border: #e4e4e7;
  --border-soft: rgba(228, 228, 231, 0.5);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.max-w-7xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

input::placeholder {
  color: var(--text-tertiary);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s var(--ease-out-expo);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text-primary) !important;
  color: var(--bg-elevated) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: transform 0.2s var(--ease-out-expo), opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-cta:active {
  transform: scale(0.97);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  top: -10%;
  right: -5%;
  animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: rgba(16, 185, 129, 0.1);
  bottom: 10%;
  left: -5%;
  animation: float-2 25s ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(16, 185, 129, 0.15);
  top: 40%;
  right: 25%;
  animation: float-3 18s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 20px); }
  66% { transform: translate(15px, -15px); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -25px); }
  66% { transform: translate(-10px, 15px); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -20px); }
}

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

.hero-content {
  padding: 48px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: 32px;
}

.url-shortener {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s;
}

.url-shortener:focus-within {
  border-color: var(--accent);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.input-group:focus-within {
  border-color: var(--border);
  background: var(--bg-elevated);
}

.input-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
  display: flex;
}

#urlInput {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 14px 0;
  color: var(--text-primary);
  outline: none;
}

.input-actions {
  display: flex;
  gap: 10px;
}

.alias-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.alias-input:focus {
  border-color: var(--accent);
}

.shorten-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
  white-space: nowrap;
}

.shorten-btn:hover {
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}

.shorten-btn:active {
  transform: scale(0.97);
}

.loader-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 2px;
  animation: shimmer-slide 1s ease-in-out infinite;
}

@keyframes shimmer-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  animation: slide-up 0.4s var(--ease-spring);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-prefix {
  color: var(--accent);
}

.result-alias {
  color: var(--text-primary);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.15s;
  flex-shrink: 0;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: #18181b;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-suffix {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

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

.hero-visual {
  display: flex;
  justify-content: flex-end;
  padding: 48px 0;
}

.visual-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.08);
  animation: float-card 6s ease-in-out infinite;
}

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

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.visual-dots {
  display: flex;
  gap: 6px;
}

.visual-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.visual-dots span:nth-child(1) { background: #f87171; }
.visual-dots span:nth-child(2) { background: #fbbf24; }
.visual-dots span:nth-child(3) { background: #34d399; }

.visual-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.visual-body {
  padding: 20px;
}

.chart-area {
  position: relative;
  height: 120px;
  margin-bottom: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  padding-bottom: 20px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: var(--accent-soft);
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}

.bar.active {
  background: var(--accent);
}

.chart-line {
  position: absolute;
  inset: 0;
  bottom: 20px;
  pointer-events: none;
}

.chart-line svg {
  width: 100%;
  height: 100%;
}

.visual-metrics {
  display: flex;
  gap: 16px;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.metric-value {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.metric-value.positive {
  color: var(--accent);
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.features {
  padding: 120px 0;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.feature-row.reverse {
  grid-template-columns: 1fr 1.4fr;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.feature-card.feature-wide {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.feature-row.reverse .feature-card.feature-wide {
  grid-template-columns: auto 1fr auto;
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-wide .feature-icon {
  margin-bottom: 0;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

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

.feature-wide .feature-content h3 {
  margin-bottom: 6px;
}

.feature-wide .feature-content p {
  font-size: 0.88rem;
}

.feature-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-shield {
  width: 64px;
  height: 80px;
  border: 2px solid var(--accent);
  border-radius: 8px 8px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  opacity: 0.7;
}

.shield-line {
  width: 28px;
  height: 3px;
  background: var(--accent-soft);
  border-radius: 2px;
}

.shield-line.short {
  width: 18px;
}

.shield-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.code-preview {
  background: #18181b;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  color: #d4d4d8;
  min-width: 180px;
}

.code-keyword {
  color: #f87171;
  font-weight: 600;
}

.code-url {
  color: #93c5fd;
}

.code-key {
  color: #a1a1aa;
}

.code-string {
  color: #34d399;
}

.code-brace {
  color: #71717a;
}

.analytics {
  padding: 120px 0;
}

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

.analytics-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 20px 0 32px;
  max-width: 48ch;
}

.analytics-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.af-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.af-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.af-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.analytics-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.06);
}

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

.ac-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.ac-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
}

.ac-tab {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ac-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ac-chart {
  height: 120px;
  margin-bottom: 20px;
}

.ac-chart-svg {
  width: 100%;
  height: 100%;
}

.ac-chart-svg svg {
  width: 100%;
  height: 100%;
}

.pulse-dot {
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 7; opacity: 0.4; }
}

.ac-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ac-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-metric-val {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.ac-metric-val.positive {
  color: var(--accent);
}

.ac-metric-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.ac-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.br-source {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.br-bar-bg {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.br-bar {
  height: 100%;
  width: var(--w);
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.6s var(--ease-out-expo);
}

.br-pct {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-align: right;
}

.pricing {
  padding: 120px 0;
}

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

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -12px var(--accent-glow);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -12px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.2s;
}

.pricing-btn:active {
  transform: scale(0.98);
}

.pricing-btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.pricing-btn.outline:hover {
  border-color: var(--text-tertiary);
}

.pricing-btn.filled {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.pricing-btn.filled:hover {
  opacity: 0.9;
}

.cta {
  padding: 80px 0 120px;
}

.cta-inner {
  position: relative;
  background: var(--text-primary);
  border-radius: 28px;
  padding: 80px 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 12px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.2s;
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn.primary {
  background: var(--accent);
  color: #fff;
}

.cta-btn.primary:hover {
  opacity: 0.9;
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cta-decoration {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
}

.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.ring-1 {
  inset: 0;
  animation: spin-slow 20s linear infinite;
  border-style: dashed;
}

.ring-2 {
  inset: 30px;
  animation: spin-slow 15s linear infinite reverse;
  border-color: rgba(16, 185, 129, 0.25);
}

.ring-3 {
  inset: 60px;
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.3);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-tertiary);
  transition: color 0.2s;
}

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

.stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5, .stagger-6 {
  opacity: 0;
  transform: translateY(24px);
  animation: stagger-in 0.7s var(--ease-out-expo) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features .stagger-1,
.features .stagger-2,
.features .stagger-3,
.features .stagger-4,
.pricing .stagger-1,
.pricing .stagger-2,
.pricing .stagger-3 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.features .stagger-1.visible,
.features .stagger-2.visible,
.features .stagger-3.visible,
.features .stagger-4.visible,
.pricing .stagger-1.visible,
.pricing .stagger-2.visible,
.pricing .stagger-3.visible {
  opacity: 1;
  transform: translateY(0);
}

.features .stagger-1.visible { transition-delay: 0.05s; }
.features .stagger-2.visible { transition-delay: 0.1s; }
.features .stagger-3.visible { transition-delay: 0.15s; }
.features .stagger-4.visible { transition-delay: 0.2s; }
.pricing .stagger-1.visible { transition-delay: 0.05s; }
.pricing .stagger-2.visible { transition-delay: 0.1s; }
.pricing .stagger-3.visible { transition-delay: 0.15s; }

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    justify-content: center;
    padding: 0;
  }

  .visual-card {
    max-width: 100%;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

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

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .cta-inner {
    padding: 56px 32px;
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .cta-decoration {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 120px;
    height: 120px;
    margin-top: 32px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .input-actions {
    flex-direction: column;
  }

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

  .feature-icon {
    margin-bottom: 16px;
  }

  .feature-preview {
    margin-top: 16px;
  }

  .cta-btn.secondary {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
