:root {
  /* shadcn/ui Zinc Dark Theme (Default) */
  --background: 240 10% 3.9%;          /* #09090b */
  --foreground: 0 0% 98%;              /* #fafafa */

  --card: 240 10% 4.9%;                /* #0c0c0e - subtly elevated */
  --card-foreground: 0 0% 98%;

  --popover: 240 10% 4.9%;
  --popover-foreground: 0 0% 98%;

  --primary: 354 78% 54%;              /* İkies Brand Red */
  --primary-foreground: 0 0% 100%;
  --primary-hover: 354 78% 47%;

  --secondary: 240 3.7% 15.9%;         /* #27272a */
  --secondary-foreground: 0 0% 98%;
  --secondary-hover: 240 3.7% 20%;

  --muted: 240 3.7% 15.9%;             /* #27272a */
  --muted-foreground: 240 5% 64.9%;    /* #a1a1aa */

  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;

  --border: 240 3.7% 15.9%;            /* #27272a */
  --input: 240 3.7% 15.9%;
  --ring: 354 78% 54%;

  /* Rounded Corner Tokens (Enhanced curvature) */
  --radius: 0.875rem;                  /* 14px */
  --radius-sm: 0.625rem;               /* 10px */
  --radius-md: 0.875rem;               /* 14px */
  --radius-lg: 1.125rem;               /* 18px */
  --radius-xl: 1.5rem;                 /* 24px */
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Legacy alias mappings for backward compatibility */
  --bg-dark: hsl(var(--background));
  --bg-card: hsl(var(--card));
  --bg-card-hover: hsl(var(--secondary));
  --text-main: hsl(var(--foreground));
  --text-muted: hsl(var(--muted-foreground));
  --accent-red: hsl(var(--primary));
  --accent-red-hover: hsl(var(--primary-hover));
  --border-color: hsl(var(--border));
  --transition-speed: 0.2s;
}

/* ── shadcn/ui Zinc Light Theme ── */
[data-theme="light"], html.light {
  --background: 240 5.9% 92.5%;        /* #e9e9ed - darker backdrop for better card visibility */
  --foreground: 240 10% 3.9%;          /* #09090b */

  --card: 0 0% 100%;                   /* Crisp white card */
  --card-foreground: 240 10% 3.9%;

  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;

  --primary: 354 78% 52%;              /* Crisp brand red */
  --primary-foreground: 0 0% 100%;
  --primary-hover: 354 78% 45%;

  --secondary: 240 4.8% 95.9%;         /* #f4f4f5 */
  --secondary-foreground: 240 5.9% 10%; /* #18181b */
  --secondary-hover: 240 4.8% 91%;

  --muted: 240 4.8% 95.9%;             /* #f4f4f5 */
  --muted-foreground: 240 3.8% 46.1%;  /* #71717a */

  --accent: 240 4.8% 95.9%;            /* #f4f4f5 */
  --accent-foreground: 240 5.9% 10%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;

  --border: 240 5.9% 90%;              /* #e4e4e7 */
  --input: 240 5.9% 90%;
  --ring: 354 78% 52%;

  /* Legacy alias mappings for light mode */
  --bg-dark: hsl(var(--background));
  --bg-card: hsl(var(--card));
  --bg-card-hover: hsl(var(--secondary));
  --text-main: hsl(var(--foreground));
  --text-muted: hsl(var(--muted-foreground));
  --border-color: hsl(var(--border));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

body {
  background-color: transparent;
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  font-feature-settings: "rlig" 1, "calt" 1;
  transition: color var(--transition-speed) ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: hsl(var(--primary));
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em; /* shadcn tracking-tight */
  color: hsl(var(--foreground));
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

/* ── Typography Utilities ── */
.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* ── Separator / Divider ── */
.separator {
  height: 1px;
  width: 100%;
  background-color: hsl(var(--border));
  margin: 1.5rem 0;
  border: none;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.08s; }
.delay-200 { animation-delay: 0.16s; }
.delay-300 { animation-delay: 0.24s; }

/* ── Global Mobile Responsive Scale ── */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }
  h3 {
    font-size: 1.15rem !important;
  }
  .container {
    width: 92%;
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.55rem !important;
  }
  h2 {
    font-size: 1.3rem !important;
  }
  .container {
    width: 94%;
    padding: 1.25rem 0;
  }
}
