/* ===========================================================================
   Portfolio site — pure CSS (no Tailwind, no preprocessor)
   Warm cream + amber palette. Mobile-first responsive.
   =========================================================================== */

/* ----------------------------------------------------------------------- */
/*  Design tokens                                                          */
/* ----------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg: #fdf8f0;
  --bg-elev: #ffffff;
  --bg-soft: #f5ede0;
  --fg: #2a1f15;
  --fg-muted: #6b5d4f;
  --fg-soft: #8b7d6f;
  --border: #e8dcc8;
  --border-soft: #f0e6d4;

  --primary: #c2691b;
  --primary-hover: #a85515;
  --primary-soft: #f5e0c8;
  --primary-fg: #fdf8f0;

  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --sky: #0284c7;
  --sky-soft: #e0f2fe;
  --slate: #475569;
  --slate-soft: #f1f5f9;

  /* Type */
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  /* Radius + shadow */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(42, 31, 21, 0.05);
  --shadow: 0 4px 12px -2px rgba(42, 31, 21, 0.08);
  --shadow-lg: 0 12px 32px -8px rgba(42, 31, 21, 0.15);
  --shadow-xl: 0 24px 60px -12px rgba(42, 31, 21, 0.25);

  /* Layout */
  --max-width: 1152px;
  --nav-height: 64px;
}

/* ----------------------------------------------------------------------- */
/*  Dark theme — aynı sıcak (warm) palet, koyu zemin üzerinde                */
/* ----------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg: #1a1410;
  --bg-elev: #241d17;
  --bg-soft: #2c231b;
  --fg: #f5ede0;
  --fg-muted: #b3a496;
  --fg-soft: #8b7d6f;
  --border: #3d3226;
  --border-soft: #2c231b;

  --primary: #e2833a;
  --primary-hover: #f0954d;
  --primary-soft: #3d2a15;
  --primary-fg: #1a1410;

  --emerald: #34d399;
  --emerald-soft: #103326;
  --amber: #fbbf24;
  --amber-soft: #3d2f0a;
  --rose: #fb7185;
  --rose-soft: #3d1520;
  --sky: #38bdf8;
  --sky-soft: #0c2d3d;
  --slate: #94a3b8;
  --slate-soft: #1e2530;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Sadece bu birkaç yerde renkler var()'a değil sabit hex'e bağlıydı —
   dark temada da okunaklı kalsınlar diye elle geçersiz kılınıyor. */
:root[data-theme="dark"] .demo-card-banner.has-image,
:root[data-theme="dark"] .hero-preview-tile-image.has-image {
  background: #2c231b;
}

:root[data-theme="dark"] .alert-success {
  background: #103326;
  border-color: #1f5c42;
  color: #6ee7b7;
}

:root[data-theme="dark"] .alert-error {
  background: #3d1520;
  border-color: #7f2b3d;
  color: #fca5a5;
}

:root[data-theme="dark"] .alert-warning {
  background: #3d2f0a;
  border-color: #7a5f14;
  color: #fcd34d;
}

:root[data-theme="dark"] .navbar {
  background: rgba(26, 20, 16, 0.85);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

ul {
  list-style: none;
}

/* ----------------------------------------------------------------------- */
/*  Layout primitives                                                      */
/* ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .page {
    padding: 4rem 1.5rem;
  }
}

.page-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .page-header h1 {
    font-size: 3rem;
  }
}

.page-header p.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--fg-muted);
}

.section {
  padding: 3rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--bordered {
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 2.25rem;
  }
}

.section > .container > p.lead,
.section-subtitle {
  margin-top: 0.5rem;
  color: var(--fg-muted);
  max-width: 640px;
}

/* ----------------------------------------------------------------------- */
/*  Chips & badges                                                         */
/* ----------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.chip .dot.emerald {
  background: var(--emerald);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.badge--emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.badge--secondary {
  background: var(--bg-soft);
  color: var(--fg);
}

.badge--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

/* ----------------------------------------------------------------------- */
/*  Buttons                                                                */
/* ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  height: 36px;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--outline {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--fg);
}

.btn--outline:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
}

.btn--secondary {
  background: var(--bg-soft);
  color: var(--fg);
}

.btn--secondary:hover {
  background: var(--border-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  background: var(--bg-soft);
}

.btn--lg {
  height: 44px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 1rem;
  height: 1rem;
}

/* ----------------------------------------------------------------------- */
/*  Cards                                                                  */
/* ----------------------------------------------------------------------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease;
}

.card--pad-lg {
  padding: 2rem;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card--soft {
  background: var(--bg-soft);
  border-color: var(--border-soft);
}

.card--highlight {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -8px rgba(194, 105, 27, 0.25);
}

.card--highlight:hover {
  box-shadow: 0 12px 32px -8px rgba(194, 105, 27, 0.35);
}

.card h3 {
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.card .icon-wrap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.card .icon-wrap .icon {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------------------------------------- */
/*  Grid helpers                                                           */
/* ----------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid--gap-lg {
  gap: 1.5rem;
}

.grid--gap-xl {
  gap: 2rem;
}

/* ----------------------------------------------------------------------- */
/*  Navbar                                                                 */
/* ----------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .navbar-inner {
    padding: 0 1.5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--fg);
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  color: var(--fg);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

.theme-toggle-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-sun {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu (drawer) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(42, 31, 21, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  width: 280px;
  height: 100vh;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.drawer-head .brand {
  font-size: 0.95rem;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.drawer-close:hover {
  background: var(--bg-soft);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-link {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.drawer-link:hover {
  background: var(--bg-soft);
}

.drawer-link.active {
  background: var(--bg-soft);
  color: var(--primary);
}

/* ----------------------------------------------------------------------- */
/*  Footer                                                                 */
/* ----------------------------------------------------------------------- */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout main {
  flex: 1;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-inner {
    padding: 2.5rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg-muted);
  transition: all 0.15s ease;
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.social-link .icon {
  width: 16px;
  height: 16px;
}

.footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-links button {
  font-size: 0.875rem;
  color: var(--fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--primary);
}

.footer-links .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ----------------------------------------------------------------------- */
/*  Home page                                                              */
/* ----------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .hero {
    padding: 4rem 0 5rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      at 20% 0%,
      rgba(245, 224, 200, 0.55) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 80% 100%,
      rgba(245, 199, 168, 0.45) 0px,
      transparent 50%
    );
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.hero h1 {
  font-size: 2.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 .accent {
  color: var(--primary);
}

.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}

.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 12px;
  background: rgba(194, 105, 27, 0.2);
  z-index: -1;
}

.hero p.lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 560px;
}

@media (min-width: 640px) {
  .hero p.lead {
    font-size: 1.25rem;
  }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .hero-stat-value {
    font-size: 1.875rem;
  }
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

@media (min-width: 640px) {
  .hero-stat-label {
    font-size: 0.875rem;
  }
}

/* Hero preview card */
.hero-preview {
  position: relative;
  margin: 0 auto;
  max-width: 28rem;
}

.hero-preview-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(194, 105, 27, 0.1);
  border-radius: var(--radius-xl);
  filter: blur(40px);
  z-index: -1;
}

.hero-card {
  background: var(--bg-elev);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.hero-card-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot--red { background: #f87171; }
.dot--yellow { background: #facc15; }
.dot--green { background: #4ade80; }

.hero-card-url {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.hero-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
}

.hero-preview-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.hero-preview-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.hero-preview-tile-image {
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.hero-preview-tile-body {
  padding: 0.625rem;
}

.hero-preview-tile-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-preview-tile-sector {
  font-size: 0.625rem;
  color: var(--fg-muted);
}

.hero-badge-floating {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge-floating .icon {
  width: 16px;
  height: 16px;
  color: var(--emerald);
}

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, var(--primary), #b85410);
  color: var(--primary-fg);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

@media (min-width: 640px) {
  .cta-card {
    padding: 3rem;
  }
}

.cta-card h2 {
  color: var(--primary-fg);
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .cta-card h2 {
    font-size: 2.25rem;
  }
}

.cta-card p {
  margin-top: 0.75rem;
  color: rgba(253, 248, 240, 0.85);
}

.cta-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .cta-card-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ----------------------------------------------------------------------- */
/*  About page                                                             */
/* ----------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--fg-muted);
}

.about-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.about-tags-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.about-quickinfo {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.about-quickinfo h3 {
  font-size: 1rem;
}

.about-quickinfo dl {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.about-quickinfo dt {
  color: var(--fg-muted);
}

.about-quickinfo dd {
  font-weight: 500;
  text-align: right;
}

.about-quickinfo .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Skill level badges */
.skill-level {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.level-advanced {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.level-intermediate {
  background: var(--amber-soft);
  color: var(--amber);
}

.level-beginner {
  background: var(--slate-soft);
  color: var(--slate);
}

/* ----------------------------------------------------------------------- */
/*  Services page                                                          */
/* ----------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow);
}

.pricing-card--highlight {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -8px rgba(194, 105, 27, 0.2);
}

@media (min-width: 1024px) {
  .pricing-card--highlight {
    margin-top: -1rem;
    margin-bottom: 1rem;
  }
}

.pricing-flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-tagline {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.pricing-price {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  font-weight: 700;
}

.pricing-price-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.pricing-meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.pricing-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-meta-row .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-divider {
  margin: 1.25rem 0;
  height: 1px;
  background: var(--border);
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pricing-features .icon {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.accordion-trigger:hover {
  background: var(--bg-soft);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--fg-muted);
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-content-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------------- */
/*  Demos page                                                             */
/* ----------------------------------------------------------------------- */
.demos-toolbar {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .demos-toolbar {
    flex-direction: row;
    align-items: center;
  }
}

.search-input {
  position: relative;
  max-width: 28rem;
  flex: 1;
}

.search-input .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
  pointer-events: none;
}

.search-input input {
  width: 100%;
  height: 40px;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}

.search-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.demos-count {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.demos-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .demos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .demos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Improved demo card */
.demo-card {
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.demo-card-banner {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.demo-card-banner.has-image {
  background: #f4f4f5;
}

.demo-card-banner.no-image {
  display: grid;
  place-items: center;
}

.demo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.demo-card:hover .demo-card-img {
  transform: scale(1.06);
}

.demo-card-sector-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  text-align: center;
  z-index: 1;
}

.demo-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
  pointer-events: none;
}

.demo-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-card-live {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--emerald);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.demo-card-live svg {
  width: 12px;
  height: 12px;
}

.demo-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.demo-card-body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.demo-card-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.demo-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.demo-card:hover .demo-card-cta svg {
  transform: translateX(4px);
}

/* Empty state */
.demos-empty {
  margin-top: 2rem;
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

.demos-empty-icon {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.demos-empty-icon svg {
  width: 48px;
  height: 48px;
  color: var(--fg-muted);
  opacity: 0.5;
}

.demos-empty h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.demos-empty p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  max-width: 28rem;
  margin: 0 auto;
}

/* Demo card accent backgrounds (used for no-image fallback) */
.accent-amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.accent-red {
  background: linear-gradient(135deg, #ef4444, #e11d48);
}
.accent-cyan {
  background: linear-gradient(135deg, #06b6d4, #0d9488);
}
.accent-emerald {
  background: linear-gradient(135deg, #10b981, #16a34a);
}
.accent-amber-dark {
  background: linear-gradient(135deg, #b45309, #92400e);
}
.accent-stone {
  background: linear-gradient(135deg, #44403c, #292524);
}
.accent-sky {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.accent-purple {
  background: linear-gradient(135deg, #a855f7, #c026d3);
}
.accent-zinc {
  background: linear-gradient(135deg, #52525b, #374151);
}
.accent-lime {
  background: linear-gradient(135deg, #84cc16, #059669);
}
.accent-pink {
  background: linear-gradient(135deg, #ec4899, #e11d48);
}
.accent-rose {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

/* ----------------------------------------------------------------------- */
/*  Demo modal (full-screen overlay)                                       */
/* ----------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 31, 21, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1400px;
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-emoji {
  font-size: 1.25rem;
}

.modal-title-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.modal-title-meta {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  line-height: 1.2;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.viewport-switcher {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .viewport-switcher {
    display: flex;
  }
}

.viewport-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.viewport-btn:hover {
  color: var(--fg);
}

.viewport-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
}

.viewport-btn .icon {
  width: 14px;
  height: 14px;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  background: #d4d4d8;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 640px) {
  .modal-body {
    padding: 1rem;
    align-items: center;
  }
}

.demo-frame {
  width: 100%;
  height: 100%;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Tablet/mobil: kendi boyutunda ortalanmış göster */
@media (min-width: 640px) {
  .demo-frame.viewport-tablet {
    height: 90%;
  }
  .demo-frame.viewport-mobile {
    height: 90%;
  }
}


.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

@media (min-width: 640px) {
  .modal-footer {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.5rem;
  }
}

.modal-footer-text {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

@media (min-width: 640px) {
  .modal-footer-text {
    font-size: 0.875rem;
  }
}

/* ----------------------------------------------------------------------- */
/*  Demo mockup (inside iframe)                                            */
/* ----------------------------------------------------------------------- */
.demo-mockup {
  font-family: var(--font-sans);
  background: white;
  color: #18181b;
  line-height: 1.5;
}

.demo-mockup * {
  box-sizing: border-box;
}

.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.demo-topbar .brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: none;
  border: none;
  color: inherit;
  cursor: default;
  padding: 0;
}

.demo-topbar nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .demo-topbar nav {
    display: flex;
  }
}

.demo-topbar nav span {
  opacity: 0.9;
}

.demo-topbar .pill {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.demo-hero {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
}

@media (min-width: 640px) {
  .demo-hero {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 2rem;
    gap: 2rem;
  }
}

.demo-hero-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.demo-hero h1 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .demo-hero h1 {
    font-size: 2.25rem;
  }
}

.demo-hero-sub {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

@media (min-width: 640px) {
  .demo-hero-sub {
    font-size: 1rem;
  }
}

.demo-hero-cta {
  margin-top: 1.25rem;
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}

.demo-hero-cta:hover {
  transform: scale(1.05);
}

.demo-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 4rem;
}

.demo-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.demo-image-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  color: #27272a;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 1;
}

.demo-section {
  padding: 2.5rem 1.25rem;
}

@media (min-width: 640px) {
  .demo-section {
    padding: 3.5rem 2rem;
  }
}

.demo-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .demo-section h2 {
    font-size: 1.875rem;
  }
}

.demo-section-sub {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

@media (min-width: 640px) {
  .demo-section-sub {
    font-size: 1rem;
  }
}

.demo-section-body {
  margin-top: 1.5rem;
}

.demo-card-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .demo-card-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-card-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .demo-card-row.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .demo-card-row.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.demo-item {
  border: 1px solid #e4e4e7;
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  transition: box-shadow 0.15s ease;
}

.demo-item:hover {
  box-shadow: var(--shadow);
}

.demo-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.demo-item-icon {
  font-size: 1.5rem;
}

.demo-item-title {
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-item-price {
  background: #f4f4f5;
  color: #3f3f46;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-item-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #71717a;
}

.demo-footer {
  padding: 2rem 1.25rem;
}

@media (min-width: 640px) {
  .demo-footer {
    padding: 2rem 2rem;
  }
}

.demo-footer-grid {
  display: grid;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .demo-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-footer-name {
  font-weight: 700;
}

.demo-footer-addr {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.75;
}

.demo-footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.demo-footer-value {
  margin-top: 0.25rem;
  white-space: pre-line;
  font-size: 0.75rem;
}

.demo-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Demo themes — text/bg/accent classes used in mockups */
.theme-amber { background: #1c1917; color: #fafaf9; }
.theme-amber .pill { background: #fbbf24; color: #1c1917; }
.theme-amber .demo-hero-cta { background: #fbbf24; color: #1c1917; }

.theme-red { background: #1c1917; color: #fafaf9; }
.theme-red .pill { background: #dc2626; color: white; }
.theme-red .demo-hero-cta { background: #dc2626; color: white; }

.theme-cyan { background: #ecfeff; color: #083344; }
.theme-cyan .pill { background: #0891b2; color: white; }
.theme-cyan .demo-hero-cta { background: #0891b2; color: white; }

.theme-emerald { background: #052e16; color: #ecfccb; }
.theme-emerald .pill { background: #34d399; color: #052e16; }
.theme-emerald .demo-hero-cta { background: #34d399; color: #052e16; }

.theme-amber-dark { background: #fffbeb; color: #451a03; }
.theme-amber-dark .pill { background: #92400e; color: #fef3c7; }
.theme-amber-dark .demo-hero-cta { background: #92400e; color: #fef3c7; }

.theme-stone { background: #1c1917; color: #fafaf9; }
.theme-stone .pill { background: #d97706; color: #1c1917; }
.theme-stone .demo-hero-cta { background: #d97706; color: #fafaf9; }

.theme-sky { background: #f0f9ff; color: #082f49; }
.theme-sky .pill { background: #0284c7; color: white; }
.theme-sky .demo-hero-cta { background: #0284c7; color: white; }

.theme-purple { background: #0a0a0a; color: #fafafa; }
.theme-purple .pill { background: #c026d3; color: white; }
.theme-purple .demo-hero-cta { background: #c026d3; color: white; }

.theme-zinc { background: #18181b; color: #fafafa; }
.theme-zinc .pill { background: #f59e0b; color: #18181b; }
.theme-zinc .demo-hero-cta { background: #f59e0b; color: #18181b; }

.theme-lime { background: #f7fee7; color: #1a2e05; }
.theme-lime .pill { background: #65a30d; color: white; }
.theme-lime .demo-hero-cta { background: #65a30d; color: white; }

.theme-pink { background: #fdf2f8; color: #500724; }
.theme-pink .pill { background: #db2777; color: white; }
.theme-pink .demo-hero-cta { background: #db2777; color: white; }

.theme-rose { background: #fff1f2; color: #4c0519; }
.theme-rose .pill { background: #e11d48; color: white; }
.theme-rose .demo-hero-cta { background: #e11d48; color: white; }

/* Footer themes for demo mockups */
.demo-footer-amber { background: #1c1917; color: #fafaf9; }
.demo-footer-red { background: #1c1917; color: #fafaf9; }
.demo-footer-cyan { background: #083344; color: #cffafe; }
.demo-footer-emerald { background: #052e16; color: #ecfccb; }
.demo-footer-amber-dark { background: #451a03; color: #fef3c7; }
.demo-footer-stone { background: #1c1917; color: #fafaf9; }
.demo-footer-sky { background: #082f49; color: #e0f2fe; }
.demo-footer-purple { background: #0a0a0a; color: #fafafa; }
.demo-footer-zinc { background: #18181b; color: #fafafa; }
.demo-footer-lime { background: #1a2e05; color: #ecfccb; }
.demo-footer-pink { background: #500724; color: #fdf2f8; }
.demo-footer-rose { background: #4c0519; color: #fff1f2; }

/* ----------------------------------------------------------------------- */
/*  Case study page                                                        */
/* ----------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-head .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.metric-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.metric-values {
  margin-top: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.metric-before {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: line-through;
}

.metric-arrow {
  width: 12px;
  height: 12px;
  color: var(--fg-muted);
}

.metric-after {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Before/after table */
.ba-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ba-row {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .ba-row {
    grid-template-columns: 1fr 2fr 2fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.ba-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}

.ba-col-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ba-col-label.before {
  color: var(--amber);
}

.ba-col-label.after {
  color: var(--emerald);
}

.ba-col-label .icon {
  width: 14px;
  height: 14px;
}

.ba-col-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.timeline-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.timeline-title {
  font-weight: 600;
}

.timeline-desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ----------------------------------------------------------------------- */
/*  Contact page                                                           */
/* ----------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  transition: all 0.15s ease;
}

.contact-method:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: white;
  flex-shrink: 0;
}

.contact-method-icon.whatsapp {
  background: #25d366;
}

.contact-method-icon.email {
  background: var(--primary);
}

.contact-method-icon.phone {
  background: var(--bg-soft);
  color: var(--fg);
}

.contact-method-icon .icon {
  width: 20px;
  height: 20px;
}

.contact-method-body {
  flex: 1;
}

.contact-method-title {
  font-weight: 600;
}

.contact-method-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.contact-method-arrow {
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
  transition: transform 0.15s ease;
}

.contact-method:hover .contact-method-arrow {
  transform: translateX(4px);
}

/* Form */
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-label .req {
  color: var(--rose);
}

.form-input,
.form-textarea,
.form-select {
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}

.form-textarea {
  height: auto;
  padding: 0.625rem 0.75rem;
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
  }
}

.form-actions .btn {
  flex: 1;
}

.form-note {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* Success state */
.form-success {
  background: var(--emerald-soft);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--emerald);
  color: white;
}

.form-success-icon .icon {
  width: 32px;
  height: 32px;
}

.form-success h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.form-success p {
  margin-top: 0.5rem;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.form-success-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .form-success-actions {
    flex-direction: row;
  }
}

/* ----------------------------------------------------------------------- */
/*  Utilities                                                              */
/* ----------------------------------------------------------------------- */
.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--fg-muted);
}

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

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.hidden-sm {
  display: none;
}

@media (min-width: 640px) {
  .hidden-sm {
    display: block;
  }
}

/* Print-safe */
@media print {
  .navbar,
  .footer,
  .menu-toggle,
  .modal-backdrop {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------------------- */
/*  Alerts                                                                 */
/* ----------------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--emerald-soft);
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.hidden {
  display: none !important;
}

/* ----------------------------------------------------------------------- */
/*  Hero preview tile (with image)                                         */
/* ----------------------------------------------------------------------- */
.hero-preview-tile-image.has-image {
  background: #f4f4f5;
  position: relative;
  overflow: hidden;
}

.hero-preview-tile-image.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-preview-tile-sector {
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  text-align: center;
}

.hero-preview-tile {
  text-decoration: none;
  color: inherit;
}

