/* Landing Page - Bold & Colorful Style (Stripe/Notion inspired) */

/* Fix full width for landing page */
body:has(.hero) {
  background: var(--gradient-hero);
}

body:has(.hero) .main-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

body:has(.hero) header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 20px 60px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body:has(.hero) header .logo-wrapper a,
body:has(.hero) header nav a.nav {
  color: white;
}

body:has(.hero) header nav .button.primary {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

body:has(.hero) header nav .button.primary:hover {
  background: rgba(255,255,255,0.3);
}

/* Variables */
:root {
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

  --primary: #667eea;
  --secondary: #764ba2;
  --accent-pink: #f093fb;
  --accent-coral: #f5576c;
  --accent-blue: #4facfe;
  --accent-cyan: #00f2fe;
  --accent-green: #43e97b;
  --accent-yellow: #ffeaa7;

  --text-dark: #1a1a2e;
  --text-light: #4a4a6a;
  --text-muted: #8888a8;

  --bg-light: #fafbff;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;

  --shadow-sm: 0 4px 6px -1px rgba(102, 126, 234, 0.1), 0 2px 4px -1px rgba(102, 126, 234, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(102, 126, 234, 0.2), 0 8px 10px -6px rgba(102, 126, 234, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(102, 126, 234, 0.3);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

[data-theme="dark"] {
  --bg-light: #0f0f1a;
  --bg-white: #1a1a2e;
  --text-dark: #ffffff;
  --text-light: #b8b8d0;
  --text-muted: #6a6a8a;
}

/* Dark mode for hero shortener input */
[data-theme="dark"] .hero-shortener {
  background: rgba(30, 30, 50, 0.95);
}

[data-theme="dark"] .hero-shortener input[type="text"],
[data-theme="dark"] .hero-shortener input[type="url"] {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .hero-shortener input[type="text"]:focus,
[data-theme="dark"] .hero-shortener input[type="url"]:focus {
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="dark"] .hero-shortener input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .hero-shortener .form-note {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .hero-shortener .form-note a {
  color: #a0b0ff;
}

/* Dark mode for result link */
[data-theme="dark"] .shortener-result.success .result-card {
  background: linear-gradient(135deg, #4a5fd0 0%, #5a3d8a 100%);
}

[data-theme="dark"] input.result-link,
[data-theme="dark"] input.result-link[type="text"] {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .result-note {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .result-note a {
  color: #ffffff;
}

/* ========== HERO SECTION ========== */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 100px;
  position: relative;
  overflow: hidden;
}

/* Animated background shapes */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: var(--accent-pink);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  bottom: -50px;
  left: -50px;
  animation-delay: -4s;
}

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

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero h1 span {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 20px;
  letter-spacing: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero Shortener Card */
.hero-shortener {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.2);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-shortener:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(102, 126, 234, 0.5);
}

.hero-shortener .shortener-input-group {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-shortener input[type="text"],
.hero-shortener input[type="url"] {
  flex: 1;
  padding: 0 24px !important;
  font-size: 1.1rem;
  line-height: 54px !important;
  border: none !important;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-white);
  color: var(--text-dark);
  box-sizing: border-box !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.hero-shortener input[type="text"]:focus,
.hero-shortener input[type="url"]:focus {
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px rgba(102, 126, 234, 0.15);
  height: 54px !important;
}

.hero-shortener input[type="text"]::placeholder,
.hero-shortener input[type="url"]::placeholder {
  color: var(--text-muted);
}

.hero-shortener .btn-shorten,
.hero-shortener button.btn-shorten {
  padding: 0 36px !important;
  background: var(--gradient-1);
  color: white;
  border: none !important;
  border-radius: var(--radius-md);
  font-size: 1rem;
  line-height: 54px !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
}

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

.hero-shortener .btn-shorten:hover::before {
  left: 100%;
}

.hero-shortener .btn-shorten:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.hero-shortener .form-note {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 8px;
}

.hero-shortener .form-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.hero-shortener .form-note a:hover {
  color: var(--secondary);
}

/* ========== FEATURES SECTION ========== */
.features {
  padding: 140px 20px;
  background: var(--bg-light);
  position: relative;
  width: 100%;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-header p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--bg-white);
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:nth-child(2)::before {
  background: var(--gradient-2);
}

.feature-card:nth-child(3)::before {
  background: var(--gradient-3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  transition: transform 0.3s ease;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--gradient-2);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--gradient-3);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
}

.feature-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ========== STATS SECTION ========== */
.stats {
  background: var(--bg-dark);
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.stats::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  top: -200px;
  right: -200px;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stats-header {
  text-align: center;
  margin-bottom: 70px;
}

.stats-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.stats-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
}

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

.stat-item {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item:nth-child(2) h3 {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-item:nth-child(3) h3 {
  background: var(--gradient-4);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-item:nth-child(4) h3 {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 140px 20px;
  background: var(--bg-white);
  position: relative;
  width: 100%;
}

.how-container {
  max-width: 1000px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 80px;
}

.how-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.how-steps::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 90px;
  height: 90px;
  background: var(--bg-white);
  border: 4px solid;
  border-image: var(--gradient-1) 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 28px;
  position: relative;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  box-shadow: var(--shadow-md);
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--gradient-1);
  border-radius: 50%;
  z-index: -1;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-white);
  border-radius: 50%;
  z-index: -1;
}

.step:nth-child(2) .step-number::before {
  background: var(--gradient-2);
}

.step:nth-child(2) .step-number {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
}

.step:nth-child(3) .step-number::before {
  background: var(--gradient-3);
}

.step:nth-child(3) .step-number {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  background-clip: text;
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ========== CTA SECTION ========== */
.cta {
  padding: 140px 20px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.cta::before {
  width: 300px;
  height: 300px;
  background: var(--accent-yellow);
  top: -100px;
  left: -100px;
}

.cta::after {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -150px;
  right: -150px;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.cta p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 50px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 20px 48px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  padding: 20px 48px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
}

/* ========== FOOTER ========== */
.landing-footer {
  background: var(--bg-dark);
  color: white;
  padding: 80px 20px 40px;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 1.05rem;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
}

/* ========== SHORTENER RESULT ========== */
.shortener-result {
  margin-top: 20px;
  animation: fadeInUp 0.4s ease-out;
}

.shortener-result.error .error-message {
  color: #e74c3c;
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: var(--radius-sm);
  border-left: 4px solid #e74c3c;
}

.shortener-result.success .result-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.result-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.result-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  stroke-width: 2.5;
}

.result-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-link-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

input.result-link,
input.result-link[type="text"] {
  flex: 1;
  padding: 0 20px !important;
  font-size: 1rem;
  font-weight: 700;
  color: #667eea;
  background: white !important;
  border: none !important;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  line-height: 46px !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input.result-link:focus,
input.result-link:active,
input.result-link:hover {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  height: 46px !important;
}

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  height: 46px;
  box-sizing: border-box;
}

.btn-copy:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-copy.copied {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.btn-copy svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.result-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.result-note svg {
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.85);
}

.result-note a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-note a:hover {
  text-decoration: none;
}

/* Button loading state */
.hero-shortener form.htmx-request .btn-text {
  display: none;
}

.hero-shortener form.htmx-request .btn-loading {
  display: block !important;
}

.hero-shortener .spinner {
  animation: spin 1s linear infinite;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-shortener {
  animation: scaleIn 0.8s ease-out 0.3s both;
}

.feature-card {
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.stat-item {
  animation: fadeInUp 0.6s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.step {
  animation: fadeInUp 0.6s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.25s; }
.step:nth-child(3) { animation-delay: 0.4s; }

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

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

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

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 80px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }

  .hero h1 span {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-shortener {
    padding: 28px;
  }

  .hero-shortener .shortener-input-group {
    flex-direction: column;
  }

  .hero-shortener .btn-shorten {
    width: 100%;
  }

  .features {
    padding: 100px 20px;
  }

  .features-header h2,
  .how-header h2,
  .cta h2 {
    font-size: 2.5rem;
  }

  .features-grid,
  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .stat-item h3 {
    font-size: 2.5rem;
  }

  .cta {
    padding: 100px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .features-header h2,
  .how-header h2,
  .cta h2 {
    font-size: 2rem;
  }
}

/* ========== LOGIN PAGE STYLES ========== */
form#login-signup {
  width: 450px !important;
  max-width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 40px !important;
  box-shadow: var(--shadow-lg);
  margin: 2rem auto !important;
}

form#login-signup label {
  margin-bottom: 1.5rem !important;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

form#login-signup input[type="email"],
form#login-signup input[type="password"],
form#login-signup input[type="text"] {
  width: 100%;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin-top: 0.75rem !important;
  padding: 0 24px !important;
  font-size: 1rem;
  border: none !important;
  border-radius: var(--radius-md) !important;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-light) !important;
  color: var(--text-dark);
  box-sizing: border-box !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

form#login-signup input[type="email"]:focus,
form#login-signup input[type="password"]:focus,
form#login-signup input[type="text"]:focus {
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

form#login-signup input::placeholder {
  color: var(--text-muted);
}

form#login-signup .buttons-wrapper {
  margin-bottom: 1.5rem !important;
  gap: 12px;
}

form#login-signup .buttons-wrapper button {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box !important;
}

form#login-signup .buttons-wrapper button.primary,
form#login-signup .buttons-wrapper button.login {
  background: var(--gradient-1) !important;
  color: white !important;
}

form#login-signup .buttons-wrapper button.primary:hover,
form#login-signup .buttons-wrapper button.login:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

form#login-signup .buttons-wrapper button.secondary,
form#login-signup .buttons-wrapper button.signup {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
}

form#login-signup .buttons-wrapper button.secondary:hover,
form#login-signup .buttons-wrapper button.signup:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  transform: scale(1.02);
}

form#login-signup a.forgot-password {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

form#login-signup a.forgot-password:hover {
  color: var(--secondary);
}

form#login-signup p.error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

form#login-signup label.error input {
  box-shadow: inset 0 0 0 2px #e74c3c !important;
}

form#login-signup label p.error {
  margin-top: 0.5rem;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Dark mode for login page */
[data-theme="dark"] form#login-signup {
  background: rgba(30, 30, 50, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] form#login-signup label {
  color: #e0e0e8;
}

[data-theme="dark"] form#login-signup input[type="email"],
[data-theme="dark"] form#login-signup input[type="password"],
[data-theme="dark"] form#login-signup input[type="text"] {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] form#login-signup input[type="email"]:focus,
[data-theme="dark"] form#login-signup input[type="password"]:focus,
[data-theme="dark"] form#login-signup input[type="text"]:focus {
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px rgba(102, 126, 234, 0.3) !important;
}

[data-theme="dark"] form#login-signup input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] form#login-signup .buttons-wrapper button.secondary,
[data-theme="dark"] form#login-signup .buttons-wrapper button.signup {
  color: #a0b0ff !important;
  border-color: #a0b0ff !important;
}

[data-theme="dark"] form#login-signup .buttons-wrapper button.secondary:hover,
[data-theme="dark"] form#login-signup .buttons-wrapper button.signup:hover {
  background: rgba(102, 126, 234, 0.2) !important;
}

[data-theme="dark"] form#login-signup a.forgot-password {
  color: #a0b0ff;
}

[data-theme="dark"] form#login-signup a.forgot-password:hover {
  color: #c0d0ff;
}

[data-theme="dark"] form#login-signup p.error {
  background: rgba(231, 76, 60, 0.2);
  color: #ff8a80;
}
