/* ============================================================
   AIPhoto.io — Main Stylesheet
   Prefix: ap-*  |  Palette: Slate + Cyan
   Fonts: DM Sans + DM Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --ap-slate-900: #0f172a;
  --ap-slate-800: #1e293b;
  --ap-slate-700: #334155;
  --ap-slate-600: #475569;
  --ap-slate-500: #64748b;
  --ap-slate-400: #94a3b8;
  --ap-slate-300: #cbd5e1;
  --ap-slate-200: #e2e8f0;
  --ap-slate-100: #f1f5f9;
  --ap-slate-50:  #f8fafc;

  --ap-cyan-600:  #0891b2;
  --ap-cyan-500:  #06b6d4;
  --ap-cyan-400:  #22d3ee;
  --ap-cyan-300:  #67e8f9;
  --ap-cyan-100:  #cffafe;
  --ap-cyan-50:   #ecfeff;

  --ap-white:     #ffffff;
  --ap-error:     #ef4444;
  --ap-success:   #22c55e;
  --ap-warning:   #f59e0b;

  --ap-primary:   var(--ap-slate-700);
  --ap-accent:    var(--ap-cyan-500);
  --ap-bg:        var(--ap-slate-50);
  --ap-card-bg:   var(--ap-white);
  --ap-text:      var(--ap-slate-800);
  --ap-muted:     var(--ap-slate-500);
  --ap-border:    var(--ap-slate-200);

  --ap-radius-sm: 6px;
  --ap-radius:    12px;
  --ap-radius-lg: 20px;
  --ap-radius-xl: 28px;

  --ap-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --ap-shadow:    0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --ap-shadow-lg: 0 12px 40px rgba(15,23,42,.12), 0 4px 16px rgba(15,23,42,.06);
  --ap-shadow-xl: 0 24px 64px rgba(15,23,42,.16), 0 8px 24px rgba(15,23,42,.08);

  --ap-font-sans: 'DM Sans', system-ui, sans-serif;
  --ap-font-mono: 'DM Mono', 'Fira Code', monospace;

  --ap-transition: 0.18s ease;
  --ap-container:  1180px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ap-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ap-text);
  background: var(--ap-bg);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--ap-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Container ── */
.ap-container {
  width: 100%;
  max-width: var(--ap-container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Typography ── */
.ap-h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.ap-h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.ap-h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
.ap-h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ap-lead { font-size: 1.15rem; line-height: 1.7; color: var(--ap-muted); }
.ap-mono { font-family: var(--ap-font-mono); font-size: 0.875rem; }
.ap-label {
  font-family: var(--ap-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-accent);
  font-weight: 500;
}
.ap-text-center { text-align: center; }
.ap-text-muted { color: var(--ap-muted); }

/* ── Buttons ── */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--ap-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--ap-transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.ap-btn-primary {
  background: var(--ap-accent);
  color: var(--ap-white);
  box-shadow: 0 4px 14px rgba(6,182,212,.35);
}
.ap-btn-primary:hover {
  background: var(--ap-cyan-600);
  box-shadow: 0 6px 20px rgba(6,182,212,.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ap-white);
}
.ap-btn-outline {
  border-color: var(--ap-border);
  color: var(--ap-text);
  background: var(--ap-white);
}
.ap-btn-outline:hover {
  border-color: var(--ap-slate-300);
  background: var(--ap-slate-50);
  text-decoration: none;
  color: var(--ap-text);
}
.ap-btn-ghost {
  color: var(--ap-muted);
  padding: 8px 16px;
}
.ap-btn-ghost:hover { color: var(--ap-text); background: var(--ap-slate-100); text-decoration: none; }
.ap-btn-dark {
  background: var(--ap-slate-800);
  color: var(--ap-white);
}
.ap-btn-dark:hover {
  background: var(--ap-slate-900);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ap-white);
}
.ap-btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: var(--ap-radius-sm); }
.ap-btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--ap-radius); }
.ap-btn-full { width: 100%; justify-content: center; }
.ap-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.ap-card {
  background: var(--ap-card-bg);
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  box-shadow: var(--ap-shadow-sm);
  padding: 28px;
  transition: box-shadow var(--ap-transition), transform var(--ap-transition);
}
.ap-card:hover { box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-card-flat { box-shadow: none; }

/* ── Badge / Tag ── */
.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.ap-badge-cyan { background: var(--ap-cyan-50); color: var(--ap-cyan-600); border: 1px solid var(--ap-cyan-300); }
.ap-badge-slate { background: var(--ap-slate-100); color: var(--ap-slate-600); border: 1px solid var(--ap-slate-200); }

/* ── Form Elements ── */
.ap-input, .ap-textarea, .ap-select {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  background: var(--ap-white);
  color: var(--ap-text);
  font-size: 0.9rem;
  transition: border-color var(--ap-transition), box-shadow var(--ap-transition);
  outline: none;
}
.ap-input:focus, .ap-textarea:focus, .ap-select:focus {
  border-color: var(--ap-accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,.12);
}
.ap-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.ap-input-group { position: relative; display: flex; gap: 8px; }
.ap-input-group .ap-input { border-radius: var(--ap-radius-sm) 0 0 var(--ap-radius-sm); }
.ap-input-group .ap-btn { border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0; }
.ap-form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ap-slate-700); margin-bottom: 6px; }

/* ── Divider ── */
.ap-divider { height: 1px; background: var(--ap-border); margin: 32px 0; }

/* ── Section spacing ── */
.ap-section { padding-block: 80px; }
.ap-section-sm { padding-block: 48px; }
.ap-section-lg { padding-block: 112px; }
.ap-section-title { max-width: 600px; margin-inline: auto; margin-bottom: 56px; }
.ap-section-title .ap-label { margin-bottom: 12px; display: block; }

/* ── Grid ── */
.ap-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ap-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ap-flex { display: flex; align-items: center; }
.ap-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ap-gap-2 { gap: 8px; }
.ap-gap-3 { gap: 12px; }
.ap-gap-4 { gap: 16px; }

/* ── Header / Nav ── */
.ap-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ap-transition), background var(--ap-transition);
}
.ap-header.ap-scrolled {
  border-bottom-color: var(--ap-border);
  background: rgba(248,250,252,.95);
}
.ap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.ap-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ap-slate-900);
  text-decoration: none;
  flex-shrink: 0;
}
.ap-logo:hover { text-decoration: none; color: var(--ap-slate-900); }
.ap-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--ap-slate-800), var(--ap-accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}
.ap-logo-text span { color: var(--ap-accent); }
.ap-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.ap-nav a {
  padding: 7px 14px;
  border-radius: var(--ap-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ap-slate-600);
  transition: all var(--ap-transition);
  text-decoration: none;
}
.ap-nav a:hover, .ap-nav a.active { color: var(--ap-slate-900); background: var(--ap-slate-100); }
.ap-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ap-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.ap-hamburger span { display: block; width: 22px; height: 2px; background: var(--ap-text); border-radius: 2px; transition: all var(--ap-transition); }
.ap-mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--ap-border);
  background: var(--ap-white);
  gap: 4px;
}
.ap-mobile-nav.open { display: flex; }
.ap-mobile-nav a {
  padding: 10px 14px;
  border-radius: var(--ap-radius-sm);
  color: var(--ap-text);
  font-weight: 500;
  text-decoration: none;
}
.ap-mobile-nav a:hover { background: var(--ap-slate-100); }

/* ── Hero ── */
.ap-hero {
  padding-block: 100px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(6,182,212,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ap-hero-label { margin-bottom: 20px; }
.ap-hero-headline { margin-bottom: 20px; color: var(--ap-slate-900); }
.ap-hero-sub { max-width: 560px; margin-inline: auto; margin-bottom: 36px; font-size: 1.1rem; color: var(--ap-muted); }
.ap-hero-input-wrap {
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 48px;
}
.ap-hero-input-row { display: flex; gap: 8px; }
.ap-hero-input-row .ap-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--ap-radius);
  font-size: 0.95rem;
  box-shadow: var(--ap-shadow-sm);
}
.ap-hero-input-row .ap-btn-primary {
  padding: 14px 24px;
  border-radius: var(--ap-radius);
  font-size: 0.95rem;
  white-space: nowrap;
}
.ap-hero-social-proof { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ap-hero-avatars { display: flex; }
.ap-hero-avatars .ap-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ap-white);
  background: var(--ap-slate-300);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ap-white);
  overflow: hidden;
}
.ap-hero-avatars .ap-avatar:first-child { margin-left: 0; }
.ap-avatar-a { background: #06b6d4; }
.ap-avatar-b { background: #8b5cf6; }
.ap-avatar-c { background: #f59e0b; }
.ap-avatar-d { background: #22c55e; }
.ap-hero-social-text { font-size: 0.88rem; color: var(--ap-muted); }
.ap-hero-social-text strong { color: var(--ap-text); }
.ap-hero-mockup {
  margin-top: 64px;
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}
.ap-hero-mockup-inner {
  background: var(--ap-slate-900);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  box-shadow: var(--ap-shadow-xl);
  border: 1px solid var(--ap-slate-700);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-hero-mockup-placeholder {
  color: var(--ap-slate-500);
  text-align: center;
  font-family: var(--ap-font-mono);
  font-size: 0.9rem;
}

/* ── Logos / Social Proof Row ── */
.ap-logos-row {
  padding-block: 40px;
  border-block: 1px solid var(--ap-border);
  background: var(--ap-white);
}
.ap-logos-text { font-size: 0.83rem; color: var(--ap-muted); text-align: center; margin-bottom: 20px; }
.ap-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.ap-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 6px 20px;
  background: var(--ap-slate-100);
  border-radius: var(--ap-radius-sm);
  color: var(--ap-slate-400);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  min-width: 100px;
}

/* ── Features ── */
.ap-features { background: var(--ap-white); }
.ap-feature-card {
  padding: 28px 24px;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  transition: all var(--ap-transition);
  position: relative;
  overflow: hidden;
}
.ap-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-cyan-300));
  opacity: 0;
  transition: opacity var(--ap-transition);
}
.ap-feature-card:hover { box-shadow: var(--ap-shadow); transform: translateY(-3px); }
.ap-feature-card:hover::before { opacity: 1; }
.ap-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ap-radius-sm);
  background: var(--ap-cyan-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--ap-cyan-100);
}
.ap-feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--ap-slate-900); }
.ap-feature-card p { font-size: 0.88rem; color: var(--ap-muted); line-height: 1.65; }

/* ── Demo Section ── */
.ap-demo { background: var(--ap-slate-900); color: var(--ap-white); }
.ap-demo .ap-label { color: var(--ap-cyan-400); }
.ap-demo .ap-h2 { color: var(--ap-white); }
.ap-demo-wrap {
  position: relative;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  background: var(--ap-slate-800);
  border: 1px solid var(--ap-slate-700);
  box-shadow: var(--ap-shadow-xl);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-demo-annotation {
  position: absolute;
  background: rgba(6,182,212,.9);
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.ap-demo-annotation::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Pricing ── */
.ap-pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin-inline: auto; }
.ap-pricing-card {
  border-radius: var(--ap-radius-lg);
  border: 1.5px solid var(--ap-border);
  background: var(--ap-white);
  padding: 36px 32px;
  position: relative;
  transition: all var(--ap-transition);
}
.ap-pricing-card.ap-featured {
  border-color: var(--ap-accent);
  box-shadow: 0 0 0 4px rgba(6,182,212,.08), var(--ap-shadow-lg);
}
.ap-pricing-card.ap-dimmed { opacity: 0.7; }
.ap-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ap-accent);
  color: white;
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.ap-pricing-name { font-size: 0.83rem; font-weight: 600; color: var(--ap-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.ap-pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.ap-pricing-amount { font-size: 2.8rem; font-weight: 700; color: var(--ap-slate-900); line-height: 1; }
.ap-pricing-period { font-size: 0.9rem; color: var(--ap-muted); }
.ap-pricing-desc { font-size: 0.88rem; color: var(--ap-muted); margin-bottom: 28px; }
.ap-pricing-features { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.ap-pricing-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ap-slate-700);
}
.ap-pricing-feat .ap-check { color: var(--ap-success); font-size: 1rem; flex-shrink: 0; }
.ap-pricing-feat .ap-x { color: var(--ap-slate-400); font-size: 1rem; flex-shrink: 0; }

/* ── Testimonials ── */
.ap-testimonials { background: var(--ap-slate-50); }
.ap-testimonial-track { position: relative; overflow: hidden; }
.ap-testimonial-slide {
  display: none;
  gap: 24px;
}
.ap-testimonial-slide.active { display: grid; grid-template-columns: repeat(3, 1fr); }
.ap-testimonial-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 28px 24px;
  box-shadow: var(--ap-shadow-sm);
}
.ap-testimonial-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.ap-testimonial-text { font-size: 0.9rem; color: var(--ap-slate-700); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.ap-testimonial-author { display: flex; align-items: center; gap: 12px; }
.ap-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}
.ap-testimonial-name { font-weight: 600; font-size: 0.88rem; color: var(--ap-slate-900); }
.ap-testimonial-role { font-size: 0.78rem; color: var(--ap-muted); }
.ap-testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.ap-testo-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ap-border);
  background: var(--ap-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--ap-transition);
  color: var(--ap-text);
}
.ap-testo-btn:hover { border-color: var(--ap-accent); color: var(--ap-accent); }

/* ── FAQ ── */
.ap-faq-list { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: 2px; }
.ap-faq-item {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  overflow: hidden;
  background: var(--ap-white);
}
.ap-faq-item + .ap-faq-item { margin-top: 8px; }
.ap-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  text-align: left;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ap-slate-800);
  background: none;
  cursor: pointer;
  gap: 16px;
  transition: background var(--ap-transition);
}
.ap-faq-q:hover { background: var(--ap-slate-50); }
.ap-faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ap-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  transition: transform var(--ap-transition), background var(--ap-transition);
}
.ap-faq-item.open .ap-faq-icon { transform: rotate(45deg); background: var(--ap-cyan-50); color: var(--ap-accent); }
.ap-faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--ap-muted);
  line-height: 1.7;
  border-top: 1px solid var(--ap-border);
}
.ap-faq-item.open .ap-faq-a { display: block; }

/* ── Final CTA ── */
.ap-cta-section {
  background: linear-gradient(135deg, var(--ap-slate-900) 0%, var(--ap-slate-800) 50%, #0c2340 100%);
  color: white;
  text-align: center;
  padding-block: 96px;
  position: relative;
  overflow: hidden;
}
.ap-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(6,182,212,.15), transparent 70%);
  pointer-events: none;
}
.ap-cta-section .ap-h2 { color: white; margin-bottom: 16px; }
.ap-cta-section .ap-lead { color: rgba(255,255,255,.65); margin-bottom: 36px; }

/* ── Footer ── */
.ap-footer {
  background: var(--ap-slate-900);
  color: var(--ap-slate-400);
  padding-top: 60px;
  padding-bottom: 32px;
}
.ap-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ap-footer-brand .ap-logo { color: var(--ap-white); margin-bottom: 14px; }
.ap-footer-brand p { font-size: 0.85rem; line-height: 1.65; max-width: 240px; }
.ap-footer-col h4 { color: var(--ap-white); font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.ap-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.ap-footer-col ul li a { color: var(--ap-slate-400); font-size: 0.85rem; text-decoration: none; transition: color var(--ap-transition); }
.ap-footer-col ul li a:hover { color: var(--ap-white); }
.ap-footer-bottom { border-top: 1px solid var(--ap-slate-800); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ap-footer-copy { font-size: 0.82rem; }
.ap-footer-links { display: flex; gap: 20px; }
.ap-footer-links a { font-size: 0.82rem; color: var(--ap-slate-500); text-decoration: none; }
.ap-footer-links a:hover { color: var(--ap-slate-300); }

/* ── Generator Page ── */
.ap-gen-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 64px);
}
.ap-gen-panel {
  background: var(--ap-slate-900);
  border-right: 1px solid var(--ap-slate-700);
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ap-gen-panel label { color: var(--ap-slate-300); font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.ap-gen-panel .ap-textarea {
  background: var(--ap-slate-800);
  border-color: var(--ap-slate-600);
  color: var(--ap-white);
  min-height: 110px;
}
.ap-gen-panel .ap-textarea:focus { border-color: var(--ap-accent); }
.ap-gen-panel .ap-textarea::placeholder { color: var(--ap-slate-500); }
.ap-char-count { font-family: var(--ap-font-mono); font-size: 0.72rem; color: var(--ap-slate-500); text-align: right; margin-top: 4px; }
.ap-tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--ap-slate-800);
  border-radius: var(--ap-radius-sm);
}
.ap-tab-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ap-slate-400);
  transition: all var(--ap-transition);
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
}
.ap-tab-btn.active {
  background: var(--ap-slate-700);
  color: var(--ap-white);
  box-shadow: var(--ap-shadow-sm);
}
.ap-model-pills { display: flex; flex-direction: column; gap: 6px; }
.ap-model-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--ap-radius-sm);
  border: 1.5px solid var(--ap-slate-600);
  background: var(--ap-slate-800);
  color: var(--ap-slate-300);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ap-transition);
}
.ap-model-pill:hover, .ap-model-pill.selected {
  border-color: var(--ap-accent);
  background: rgba(6,182,212,.08);
  color: var(--ap-cyan-300);
}
.ap-model-pill .ap-model-tag {
  font-family: var(--ap-font-mono);
  font-size: 0.68rem;
  background: var(--ap-slate-700);
  padding: 2px 7px;
  border-radius: 3px;
}
.ap-style-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-style-tag {
  padding: 5px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--ap-slate-600);
  background: var(--ap-slate-800);
  color: var(--ap-slate-400);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ap-transition);
}
.ap-style-tag.selected, .ap-style-tag:hover {
  border-color: var(--ap-accent);
  color: var(--ap-cyan-300);
  background: rgba(6,182,212,.07);
}
.ap-ratio-btns { display: flex; gap: 8px; }
.ap-ratio-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--ap-radius-sm);
  border: 1.5px solid var(--ap-slate-600);
  background: var(--ap-slate-800);
  color: var(--ap-slate-400);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ap-transition);
}
.ap-ratio-btn.selected, .ap-ratio-btn:hover { border-color: var(--ap-accent); color: var(--ap-cyan-300); }
.ap-ratio-preview {
  background: var(--ap-slate-600);
  border-radius: 3px;
}
.ap-usage-bar-wrap { margin-bottom: 4px; }
.ap-usage-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ap-slate-400); margin-bottom: 8px; }
.ap-usage-track {
  height: 6px;
  background: var(--ap-slate-700);
  border-radius: 100px;
  overflow: hidden;
}
.ap-usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ap-accent), var(--ap-cyan-300));
  border-radius: 100px;
  transition: width 0.4s ease;
}
.ap-gen-output {
  background: var(--ap-slate-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 32px;
}
.ap-gen-output-empty {
  text-align: center;
  color: var(--ap-slate-400);
  max-width: 320px;
}
.ap-gen-output-empty svg { margin: 0 auto 16px; opacity: 0.3; }
.ap-gen-img-result {
  max-width: 100%;
  max-height: 600px;
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-xl);
  display: none;
}
.ap-gen-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.ap-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ap-slate-200);
  border-top-color: var(--ap-accent);
  border-radius: 50%;
  animation: ap-spin 0.8s linear infinite;
  display: none;
  margin: 0 auto 16px;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* ── Portfolio Page ── */
.ap-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ap-portfolio-item {
  border-radius: var(--ap-radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ap-slate-200);
  position: relative;
  cursor: pointer;
  transition: transform var(--ap-transition);
}
.ap-portfolio-item:hover { transform: scale(1.02); }
.ap-portfolio-item-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--ap-slate-400);
}
.ap-portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ap-transition);
  gap: 8px;
}
.ap-portfolio-item:hover .ap-portfolio-overlay { opacity: 1; }
.ap-portfolio-overlay span { color: white; font-size: 0.8rem; font-weight: 500; }

/* ── Utility ── */
.ap-mt-4 { margin-top: 16px; }
.ap-mt-6 { margin-top: 24px; }
.ap-mt-8 { margin-top: 32px; }
.ap-mb-4 { margin-bottom: 16px; }
.ap-mb-6 { margin-bottom: 24px; }
.ap-hidden { display: none; }
.ap-alert {
  padding: 14px 18px;
  border-radius: var(--ap-radius-sm);
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.ap-alert-error { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.ap-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.ap-page-header { padding-block: 56px 40px; text-align: center; background: var(--ap-white); border-bottom: 1px solid var(--ap-border); }
.ap-page-header .ap-h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ap-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ap-muted); justify-content: center; margin-bottom: 16px; }
.ap-breadcrumb a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-accent); }
.ap-breadcrumb span { color: var(--ap-slate-300); }
.ap-prose { max-width: 720px; margin-inline: auto; }
.ap-prose h2 { font-size: 1.4rem; font-weight: 700; color: var(--ap-slate-900); margin: 36px 0 12px; }
.ap-prose h3 { font-size: 1.1rem; font-weight: 600; color: var(--ap-slate-800); margin: 28px 0 10px; }
.ap-prose p { font-size: 0.93rem; color: var(--ap-slate-600); line-height: 1.8; margin-bottom: 16px; }
.ap-prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.ap-prose ul li { font-size: 0.93rem; color: var(--ap-slate-600); line-height: 1.8; margin-bottom: 6px; }
.ap-prose a { color: var(--ap-accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ap-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ap-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ap-portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .ap-gen-layout { grid-template-columns: 300px 1fr; }
}
@media (max-width: 768px) {
  .ap-nav { display: none; }
  .ap-hamburger { display: flex; }
  .ap-nav-actions .ap-btn { display: none; }
  .ap-nav-actions .ap-btn-primary { display: inline-flex; font-size: 0.82rem; padding: 8px 16px; }
  .ap-grid-2, .ap-grid-3 { grid-template-columns: 1fr; }
  .ap-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ap-pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .ap-testimonial-slide.active { grid-template-columns: 1fr; }
  .ap-footer-grid { grid-template-columns: 1fr 1fr; }
  .ap-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-gen-layout { grid-template-columns: 1fr; }
  .ap-gen-panel { max-height: 50vh; }
  .ap-hero { padding-block: 64px 48px; }
  .ap-section { padding-block: 56px; }
  .ap-hero-input-row { flex-direction: column; }
  .ap-hero-input-row .ap-btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .ap-grid-4 { grid-template-columns: 1fr; }
  .ap-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-footer-grid { grid-template-columns: 1fr; }
  .ap-container { padding-inline: 16px; }
  .ap-hero { padding-block: 48px 32px; }
  .ap-footer-bottom { flex-direction: column; text-align: center; }
  .ap-gen-action-bar .ap-btn { flex: 1; min-width: 0; font-size: 0.78rem; }
}
