/* ═══════════════════════════════════════════
   GShort — Design System & Application Styles
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Core Palette */
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-200: #c7d2fe;
  --color-indigo-300: #a5b4fc;
  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-indigo-800: #3730a3;
  --color-indigo-900: #312e81;

  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;

  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;

  --color-amber-400: #fbbf24;
  --color-rose-400: #fb7185;
  --color-sky-400: #38bdf8;
  --color-violet-400: #a78bfa;
  --color-teal-400: #2dd4bf;

  /* Semantic Tokens — Light */
  --bg-body: #ffffff;
  --bg-surface: var(--color-slate-50);
  --bg-card: #ffffff;
  --bg-card-hover: var(--color-indigo-50);
  --bg-header: rgba(255, 255, 255, 0.82);
  --bg-input: #ffffff;
  --bg-result: var(--color-indigo-50);

  --text-primary: var(--color-slate-950);
  --text-secondary: var(--color-slate-600);
  --text-tertiary: var(--color-slate-400);
  --text-link: var(--color-indigo-600);
  --text-inverse: #ffffff;

  --border-default: var(--color-slate-200);
  --border-input: var(--color-slate-300);
  --border-focus: var(--color-indigo-500);
  --border-card: var(--color-slate-100);

  --accent: var(--color-indigo-600);
  --accent-hover: var(--color-indigo-700);
  --accent-soft: var(--color-indigo-100);
  --accent-glow: rgba(99, 102, 241, 0.25);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-form: 0 8px 32px rgba(99, 102, 241, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 24px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --brand-gradient: linear-gradient(135deg, var(--color-indigo-600), var(--color-violet-400));
  --cta-gradient: linear-gradient(135deg, var(--color-indigo-600) 0%, var(--color-indigo-700) 50%, var(--color-indigo-800) 100%);

  /* Orb colors */
  --orb-1: rgba(99, 102, 241, 0.08);
  --orb-2: rgba(167, 139, 250, 0.06);
  --orb-3: rgba(56, 189, 248, 0.05);

  /* Status dot */
  --status-color: var(--color-emerald-400);
}

/* ── Dark Theme ── */
.dark {
  --bg-body: #0a0a1a;
  --bg-surface: #0f0f23;
  --bg-card: rgba(30, 30, 60, 0.6);
  --bg-card-hover: rgba(50, 50, 90, 0.6);
  --bg-header: rgba(10, 10, 26, 0.85);
  --bg-input: rgba(30, 30, 60, 0.8);
  --bg-result: rgba(30, 30, 60, 0.8);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-link: var(--color-indigo-400);
  --text-inverse: #0f172a;

  --border-default: rgba(148, 163, 184, 0.1);
  --border-input: rgba(148, 163, 184, 0.15);
  --border-focus: var(--color-indigo-400);
  --border-card: rgba(148, 163, 184, 0.08);

  --accent: var(--color-indigo-400);
  --accent-hover: var(--color-indigo-300);
  --accent-soft: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.3);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-form: 0 8px 32px rgba(99, 102, 241, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(148, 163, 184, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(99, 102, 241, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2);

  --brand-gradient: linear-gradient(135deg, var(--color-indigo-400), var(--color-violet-400));
  --cta-gradient: linear-gradient(135deg, var(--color-indigo-500) 0%, var(--color-indigo-600) 50%, var(--color-violet-400) 100%);

  --orb-1: rgba(99, 102, 241, 0.12);
  --orb-2: rgba(167, 139, 250, 0.10);
  --orb-3: rgba(56, 189, 248, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Background Decoration ── */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--orb-1);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--orb-2);
  bottom: -5%;
  left: -8%;
  animation-delay: -7s;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--orb-3);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

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

/* ── App Shell ── */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-default);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-lockup:hover {
  color: var(--text-primary);
}

.brand-mark {
  display: flex;
  width: 36px;
  height: 36px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-g {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.brand-spark {
  fill: var(--color-amber-400);
  transition: fill 0.3s ease;
}

.brand-lockup:hover .brand-spark {
  animation: sparkle 0.6s var(--ease-spring);
}

@keyframes sparkle {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.brand-text {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}

.brand-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Nav */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.login-button {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-out);
}

.login-button:hover {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px var(--accent-glow);
  transform: translateY(-1px);
}

.register-link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease-out);
}

.register-link:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px var(--accent-glow);
  transform: translateY(-1px);
  color: var(--text-inverse);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  margin-left: 4px;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-moon {
  display: none;
}

.dark .icon-sun {
  display: none;
}

.dark .icon-moon {
  display: block;
}

/* ═══════════════ MAIN CONTENT ═══════════════ */
.main-content {
  flex: 1;
}

/* ── Hero Section ── */
.hero-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-intro {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease-out);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.kicker-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(0.8); }
}

.hero-intro h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .hero-intro h1 {
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── URL Form ── */
.url-form {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.url-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border-input);
  border-radius: var(--radius-xl);
  padding: 6px;
  box-shadow: var(--shadow-form);
  transition: all 0.3s var(--ease-out);
}

.url-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-form), 0 0 0 4px var(--accent-glow);
}

.url-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 20px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
}

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

.shorten-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  color: white;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-out);
}

.shorten-button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--accent-glow);
}

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

.scissors-icon {
  width: 24px;
  height: 24px;
}

/* ── Result Area ── */
.result-area {
  margin-bottom: 20px;
  animation: fadeInUp 0.5s var(--ease-out);
}

.result-area.hidden {
  display: none;
}

.result-card {
  background: var(--bg-result);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: left;
}

.result-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

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

.result-link {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.copy-button svg {
  width: 16px;
  height: 16px;
}

.copy-button:hover {
  background: var(--accent);
  color: white;
}

.copy-button.copied {
  background: var(--color-emerald-500);
  color: white;
}

/* ── Advanced Options ── */
.advanced-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 56px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.check-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-input);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.advanced-options a {
  font-weight: 600;
  color: var(--text-link);
}

/* ── Stats Grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out);
}

.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}

.stat-number {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

/* ── Trust Row ── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald-400);
}

/* ═══════════════ FEATURES SECTION ═══════════════ */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.features-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.features-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: transparent;
}

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-spring);
}

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

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.icon-speed {
  background: rgba(251, 191, 36, 0.12);
  color: var(--color-amber-400);
}

.icon-analytics {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-indigo-400);
}

.icon-custom {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald-500);
}

.icon-share {
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-sky-400);
}

.icon-security {
  background: rgba(251, 113, 133, 0.12);
  color: var(--color-rose-400);
}

.icon-api {
  background: rgba(167, 139, 250, 0.12);
  color: var(--color-violet-400);
}

.feature-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
  padding: 80px 24px;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--cta-gradient);
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
}

.cta-inner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-indigo-700);
  background: white;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--color-indigo-800);
}

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  border-top: 1px solid var(--border-default);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.4s var(--ease-out);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-color);
  animation: pulse-dot 2s ease-in-out infinite;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection observer animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-link {
    display: none;
  }

  .hero-section {
    padding: 48px 16px 40px;
  }

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

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

  .features-section {
    padding: 48px 16px;
  }

  .cta-section {
    padding: 48px 16px;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .trust-row {
    gap: 16px;
  }

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .login-button {
    display: none;
  }

  .hero-intro h1 {
    font-size: 1.8rem;
  }

  .url-input-wrapper input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .shorten-button {
    width: 44px;
    height: 44px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .trust-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* Google Result Card */
.google-result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  margin-top: 24px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.result-icon-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon-badge svg {
  width: 20px;
  height: 20px;
}

.result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.result-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #059669;
  text-transform: uppercase;
}

.result-url-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-url-text:hover {
  color: #10b981;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-copy-link {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-open-link {
  background: rgba(255, 255, 255, 0.9);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 9px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-open-link:hover {
  background: #ffffff;
  border-color: #10b981;
}

