/* ============================================
   PORTFOLIO BUILDER - Design System
   Teal accent, clean professional aesthetic
   ============================================ */

/* ============================================
   CSS VARIABLES - THEMING
   ============================================ */

:root {
  /* Light Mode Colors */
  --bg-primary: #F8FAFB;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-hover: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent: #0D9488;
  --accent-hover: #0F766E;
  --accent-light: rgba(13, 148, 136, 0.1);
  --accent-glow: rgba(13, 148, 136, 0.15);

  --border: #E2E8F0;
  --border-hover: #CBD5E1;

  --success: #059669;
  --success-light: #ECFDF5;
  --error: #DC2626;
  --error-light: #FEF2F2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --header-height: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Dark Mode */
.dark {
  --bg-primary: #0F172A;
  --bg-surface: #1E293B;
  --bg-elevated: #1E293B;
  --bg-hover: #334155;

  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --accent: #2DD4BF;
  --accent-hover: #5EEAD4;
  --accent-light: rgba(45, 212, 191, 0.1);
  --accent-glow: rgba(45, 212, 191, 0.2);

  --border: #334155;
  --border-hover: #475569;

  --success: #34D399;
  --success-light: #064E3B;
  --error: #F87171;
  --error-light: #450A0A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  min-height: 100dvh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus states */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   LAYOUT - VIEW MANAGEMENT
   ============================================ */

.view {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(248, 250, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.dark .header {
  background: rgba(15, 23, 42, 0.9);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.nav__brand:hover {
  opacity: 0.8;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Icon Button */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
}

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

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

.theme-toggle .icon-moon {
  display: block;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

.dark .theme-toggle .icon-moon {
  display: none;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing {
  padding-top: var(--header-height);
  background: var(--bg-primary);
  overflow-x: hidden;
}

.landing__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero Section - Bold Centered */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

/* Animated Background Shapes */
.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.dark .hero__shape {
  opacity: 0.3;
}

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

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: #06B6D4;
  bottom: -50px;
  left: -50px;
  animation-delay: -7s;
}

.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: #8B5CF6;
  top: 50%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero__title {
  margin-bottom: 1rem;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero__title-line--gradient {
  background: linear-gradient(135deg, var(--accent), #06B6D4, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle br {
  display: none;
}

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

/* Glowing CTA Button */
.btn--glow {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  background: linear-gradient(135deg, var(--accent), #0891B2);
  border: none;
  box-shadow:
    0 4px 15px rgba(13, 148, 136, 0.4),
    0 0 40px rgba(13, 148, 136, 0.2);
  transition: all 0.3s ease;
}

.btn--glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(13, 148, 136, 0.5),
    0 0 60px rgba(13, 148, 136, 0.3);
  background: linear-gradient(135deg, var(--accent-hover), #0E7490);
}

.dark .btn--glow {
  box-shadow:
    0 4px 15px rgba(45, 212, 191, 0.3),
    0 0 40px rgba(45, 212, 191, 0.15);
}

.dark .btn--glow:hover {
  box-shadow:
    0 6px 20px rgba(45, 212, 191, 0.4),
    0 0 60px rgba(45, 212, 191, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-indicator span {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* Theme Showcase Section */
.themes-showcase {
  padding: 4rem 1.5rem 5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.themes-showcase__title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.themes-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .themes-showcase__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.theme-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.theme-preview__window {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-preview__window:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.theme-preview__dots {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-hover);
}

.theme-preview__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hover);
}

.theme-preview__content {
  padding: 0;
}

.theme-preview__header {
  height: 50px;
}

.theme-preview__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-preview__line {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.theme-preview__line--short {
  width: 60%;
}

.theme-preview__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Coming Soon Theme Card - Hidden on mobile */
.theme-preview.theme-preview--coming-soon {
  display: none;
}

@media (min-width: 768px) {
  .theme-preview.theme-preview--coming-soon {
    display: flex;
  }
}

.theme-preview__window--dashed {
  border: 2px dashed var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-preview__window--dashed:hover {
  border-color: var(--accent);
  transform: none;
  box-shadow: none;
}

.theme-preview__coming-soon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.theme-preview__coming-soon-content svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

.theme-preview__coming-soon-content span {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Coming Soon Text */
.themes-showcase__coming-soon-text {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .themes-showcase__coming-soon-text {
    display: none;
  }
}

/* Flow Section - Visual Timeline */
.flow-section {
  padding: 4rem 1.5rem;
}

.flow-section__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .flow-section__container {
    gap: 1rem;
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.flow-step__icon {
  width: 64px;
  height: 64px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

@media (min-width: 480px) {
  .flow-step__icon {
    width: 80px;
    height: 80px;
  }
}

.flow-step__icon svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 480px) {
  .flow-step__icon svg {
    width: 32px;
    height: 32px;
  }
}

.flow-step:hover .flow-step__icon {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.05);
}

.flow-step__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.flow-connector {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  margin-bottom: 2rem;
}

/* Trust Banner */
.trust-banner {
  padding: 2.5rem 1.5rem;
  background: var(--accent-light);
  border-top: 1px solid rgba(13, 148, 136, 0.2);
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
}

.dark .trust-banner {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.15);
}

.trust-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .trust-banner__content {
    text-align: left;
  }
}

.trust-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.trust-banner__icon svg {
  width: 24px;
  height: 24px;
}

.trust-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.trust-banner__text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-banner__text span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-fast);
  min-height: 48px;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  color: white;
}

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

.btn--secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 52px;
}

.btn--add {
  width: 100%;
  border: 2px dashed var(--border);
  background: transparent;
}

.btn--add:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  margin-top: auto;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__text a {
  color: var(--text-secondary);
}

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

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

/* ============================================
   PRIVACY PAGE
   ============================================ */

.privacy {
  padding-top: var(--header-height);
}

.privacy__content {
  flex: 1;
  padding: 3rem 1.5rem;
}

.privacy__container {
  max-width: 640px;
  margin: 0 auto;
}

.privacy__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.privacy__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.privacy__section {
  margin-bottom: 2rem;
}

.privacy__section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.privacy__section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.privacy__highlight {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.privacy__highlight p {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   BUILDER PAGE
   ============================================ */

.builder {
  padding-top: var(--header-height);
  position: relative;
  overflow-x: hidden;
}

/* Subtle background shapes for builder */
.builder::before,
.builder::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.builder::before {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -200px;
  right: -200px;
}

.builder::after {
  width: 400px;
  height: 400px;
  background: #8B5CF6;
  bottom: -100px;
  left: -150px;
}

.dark .builder::before,
.dark .builder::after {
  opacity: 0.15;
}

.builder__content {
  flex: 1;
  padding: 1.5rem 1rem 2rem;
  position: relative;
}

@media (min-width: 640px) {
  .builder__content {
    padding: 2rem 1.5rem 3rem;
  }
}

/* Builder Hero - More visual impact */
.builder__hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .builder__hero {
    padding: 2rem 0 2.5rem;
  }
}

.builder__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .builder__title {
    font-size: 2rem;
  }
}

.builder__title-accent {
  background: linear-gradient(135deg, var(--accent), #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.builder__subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Builder Two-Column Layout */
.builder__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .builder__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.builder__main {
  flex: 1;
  min-width: 0;
}

.builder__sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .builder__sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* Live Preview Card */
.preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  transition: all var(--transition-fast);
}

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

.preview-card__label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-card__label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.preview-card__window {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FAFAF8;
}

.preview-card__browser {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}

.preview-card__browser span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hover);
}

.preview-card__content {
  font-size: 10px;
  line-height: 1.4;
}

/* Mini Nav */
.preview-card__nav {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-card__nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-card__nav-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: white;
  transition: background-color 0.3s ease;
}

.preview-card__nav-name {
  font-size: 8px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.preview-card__nav-toggle {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  position: relative;
}

.preview-card__nav-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

/* Mini Hero */
.preview-card__hero {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.preview-card__greeting {
  font-size: 7px;
  color: #666;
  display: block;
  margin-bottom: 2px;
}

.preview-card__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #666666;
  margin-bottom: 2px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 6px;
}

.preview-card__name::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  margin: 4px auto 0;
  border-radius: 1px;
}

.preview-card__role {
  font-size: 8px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.preview-card__intro {
  font-size: 7px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-card__contact {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.preview-card__contact-item {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  color: #666;
}

.preview-card__contact-item svg {
  width: 10px;
  height: 10px;
}

/* Mini Sections */
.preview-card__sections {
  padding: 8px 10px;
}

.preview-card__section {
  margin-bottom: 8px;
}

.preview-card__section:last-child {
  margin-bottom: 0;
}

.preview-card__section-title {
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid #666;
  display: inline-block;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.preview-card__exp-item {
  background: rgba(0,0,0,0.02);
  border-radius: 4px;
  padding: 6px 8px;
}

.preview-card__exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.preview-card__exp-title {
  font-size: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.preview-card__exp-date {
  font-size: 6px;
  color: #999;
}

.preview-card__exp-company {
  font-size: 7px;
  color: #666;
}

/* Timeline styles */
.preview-card__timeline {
  display: flex;
  gap: 8px;
}

.preview-card__timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

.preview-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.preview-card__skills span {
  padding: 2px 6px;
  font-size: 6px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Education */
.preview-card__edu-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.preview-card__edu-degree {
  font-size: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.preview-card__edu-school {
  font-size: 7px;
  color: #666;
}

/* Mini Footer */
.preview-card__mini-footer {
  padding: 6px 10px;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.preview-card__mini-footer span {
  font-size: 6px;
  color: #999;
}

.preview-card__mini-footer-toggle {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 50%;
}

/* Preview Card Footer */
.preview-card__footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.preview-card__theme-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.preview-card__theme-label strong {
  color: var(--accent);
}

.preview-card__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  background: var(--accent-light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-card__btn:hover {
  background: var(--accent);
  color: white;
}

.preview-card__btn svg {
  width: 12px;
  height: 12px;
}

/* Theme-specific preview colors */
.preview-card[data-theme="minimal-light"] .preview-card__nav-badge { background: linear-gradient(135deg, #666666, #4D4D4D); }
.preview-card[data-theme="minimal-light"] .preview-card__name { color: #666666; }
.preview-card[data-theme="minimal-light"] .preview-card__role { color: #666666; }
.preview-card[data-theme="minimal-light"] .preview-card__section-title { color: #666666; border-bottom-color: #666666; }
.preview-card[data-theme="minimal-light"] .preview-card__timeline-dot { background: #666666; box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2); }
.preview-card[data-theme="minimal-light"] .preview-card__exp-company { color: #666666; }
.preview-card[data-theme="minimal-light"] .preview-card__skills span {
  background: rgba(102, 102, 102, 0.1);
  color: #666666;
}
.preview-card[data-theme="minimal-light"] .preview-card__mini-footer {
  background: rgba(102, 102, 102, 0.05);
}

.preview-card[data-theme="forest"] .preview-card__nav-badge { background: linear-gradient(135deg, #5B8A72, #4A7260); }
.preview-card[data-theme="forest"] .preview-card__name { color: #5B8A72; }
.preview-card[data-theme="forest"] .preview-card__role { color: #5B8A72; }
.preview-card[data-theme="forest"] .preview-card__section-title { color: #5B8A72; border-bottom-color: #5B8A72; }
.preview-card[data-theme="forest"] .preview-card__timeline-dot { background: #5B8A72; box-shadow: 0 0 0 2px rgba(91, 138, 114, 0.2); }
.preview-card[data-theme="forest"] .preview-card__exp-company { color: #5B8A72; }
.preview-card[data-theme="forest"] .preview-card__skills span {
  background: rgba(91, 138, 114, 0.1);
  color: #5B8A72;
}
.preview-card[data-theme="forest"] .preview-card__mini-footer {
  background: rgba(91, 138, 114, 0.05);
}

.preview-card[data-theme="warm"] .preview-card__nav-badge { background: linear-gradient(135deg, #C17B5F, #A66248); }
.preview-card[data-theme="warm"] .preview-card__name { color: #C17B5F; }
.preview-card[data-theme="warm"] .preview-card__role { color: #C17B5F; }
.preview-card[data-theme="warm"] .preview-card__section-title { color: #C17B5F; border-bottom-color: #C17B5F; }
.preview-card[data-theme="warm"] .preview-card__timeline-dot { background: #C17B5F; box-shadow: 0 0 0 2px rgba(193, 123, 95, 0.2); }
.preview-card[data-theme="warm"] .preview-card__exp-company { color: #C17B5F; }
.preview-card[data-theme="warm"] .preview-card__skills span {
  background: rgba(193, 123, 95, 0.1);
  color: #C17B5F;
}
.preview-card[data-theme="warm"] .preview-card__mini-footer {
  background: rgba(193, 123, 95, 0.05);
}

.preview-card[data-theme="cool"] .preview-card__nav-badge { background: linear-gradient(135deg, #4A7C9B, #3A6580); }
.preview-card[data-theme="cool"] .preview-card__name { color: #4A7C9B; }
.preview-card[data-theme="cool"] .preview-card__role { color: #4A7C9B; }
.preview-card[data-theme="cool"] .preview-card__section-title { color: #4A7C9B; border-bottom-color: #4A7C9B; }
.preview-card[data-theme="cool"] .preview-card__timeline-dot { background: #4A7C9B; box-shadow: 0 0 0 2px rgba(74, 124, 155, 0.2); }
.preview-card[data-theme="cool"] .preview-card__exp-company { color: #4A7C9B; }
.preview-card[data-theme="cool"] .preview-card__skills span {
  background: rgba(74, 124, 155, 0.1);
  color: #4A7C9B;
}
.preview-card[data-theme="cool"] .preview-card__mini-footer {
  background: rgba(74, 124, 155, 0.05);
}

/* Builder page fade-in animations */
.builder .builder__hero,
.builder .preview-card,
.builder .form-section {
  animation: fadeInUp 0.4s ease both;
}

.builder .builder__hero { animation-delay: 0.1s; }
.builder .preview-card { animation-delay: 0.15s; }
.builder .form-section:nth-of-type(1) { animation-delay: 0.2s; }
.builder .form-section:nth-of-type(2) { animation-delay: 0.25s; }
.builder .form-section:nth-of-type(3) { animation-delay: 0.3s; }
.builder .form-section:nth-of-type(4) { animation-delay: 0.35s; }
.builder .form-section:nth-of-type(5) { animation-delay: 0.4s; }
.builder .form-section:nth-of-type(6) { animation-delay: 0.45s; }
.builder .form-actions { animation: fadeInUp 0.4s ease 0.5s both; }

/* Form */
.builder__form {
  max-width: 100%;
  padding-bottom: 2rem;
}

.form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
  position: relative;
}

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

.form-section:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent-hover);
}

.form-section:focus-within {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-light);
}

.form-section__header {
  margin-bottom: 1.25rem;
}

.form-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.form-section__title svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  padding: 4px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
}

.form-section__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  margin-left: 2.125rem;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.form-grid--3 {
  grid-template-columns: 1fr;
}

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

/* Form Field */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.required {
  color: var(--error);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Error state */
.form-field--error input,
.form-field--error textarea {
  border-color: var(--error);
  background: var(--error-light);
}

.form-field--error input:focus,
.form-field--error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field__error {
  font-size: 0.75rem;
  color: var(--error);
  min-height: 1rem;
  display: none;
}

.form-field--error .form-field__error {
  display: block;
}

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

/* Theme Selector */
.theme-selector {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.theme-selector__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

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

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.625rem;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.theme-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-btn:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.theme-btn__dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.theme-btn__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Dynamic Entries */
.dynamic-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.entry-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.entry-card:hover {
  border-color: var(--border-hover);
}

.entry-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.entry-card__number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.entry-card__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  margin: -0.25rem;
}

.entry-card__remove:hover {
  background: var(--error-light);
  color: var(--error);
}

.entry-card__remove svg {
  width: 16px;
  height: 16px;
}

/* Form Actions */
.form-actions {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-top: 0.5rem;
}

.form-actions__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .form-actions__buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

.form-actions__theme-reminder {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.form-actions__theme-reminder span {
  font-weight: 600;
  color: var(--accent);
}

.change-theme-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  margin-left: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.change-theme-link:hover {
  color: var(--accent);
}

.form-actions__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.875rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.toast--error {
  background: var(--error);
  border-color: var(--error);
  color: white;
}

/* Subtle toast - less intrusive for info messages */
.toast--subtle {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  padding: 0.625rem 1rem;
  box-shadow: var(--shadow-md);
}

/* Mobile toast */
@media (max-width: 480px) {
  .toast {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* Landing Page Fade-in Animations */
.landing .hero__eyebrow,
.landing .hero__title,
.landing .hero__subtitle,
.landing .btn--glow,
.landing .themes-showcase__title,
.landing .theme-preview,
.landing .themes-showcase__coming-soon-text,
.landing .flow-step,
.landing .flow-connector,
.landing .trust-banner__content {
  animation: fadeInUp 0.4s ease both;
}

/* Staggered delays for hero */
.landing .hero__eyebrow { animation-delay: 0.1s; }
.landing .hero__title { animation-delay: 0.2s; }
.landing .hero__subtitle { animation-delay: 0.3s; }
.landing .btn--glow { animation-delay: 0.4s; }

/* Staggered delays for theme showcase */
.landing .themes-showcase__title { animation-delay: 0.5s; }
.landing .theme-preview:nth-child(1) { animation-delay: 0.55s; }
.landing .theme-preview:nth-child(2) { animation-delay: 0.6s; }
.landing .theme-preview:nth-child(3) { animation-delay: 0.65s; }
.landing .theme-preview:nth-child(4) { animation-delay: 0.7s; }
.landing .theme-preview:nth-child(5) { animation-delay: 0.75s; }
.landing .themes-showcase__coming-soon-text { animation-delay: 0.75s; }

/* Staggered delays for flow section */
.landing .flow-step:nth-child(1) { animation-delay: 0.8s; }
.landing .flow-connector:nth-child(2) { animation-delay: 0.85s; }
.landing .flow-step:nth-child(3) { animation-delay: 0.9s; }
.landing .flow-connector:nth-child(4) { animation-delay: 0.95s; }
.landing .flow-step:nth-child(5) { animation-delay: 1.0s; }

/* Trust banner */
.landing .trust-banner__content { animation-delay: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  .landing .hero__eyebrow,
  .landing .hero__title,
  .landing .hero__subtitle,
  .landing .btn--glow,
  .landing .themes-showcase__title,
  .landing .theme-preview,
  .landing .themes-showcase__coming-soon-text,
  .landing .flow-step,
  .landing .flow-connector,
  .landing .trust-banner__content {
    animation: none;
    opacity: 1;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
