/* FleurDeLiaison — Design System */

:root {
  /* Brand palette — refined French aesthetic */
  --gold:         #C8A96E;
  --gold-light:   #E2C98A;
  --gold-dark:    #9E7E4A;
  --blush:        #D4A5A5;
  --sage:         #8BAF8E;
  --navy:         #1A2744;
  --navy-light:   #243660;
  --cream:        #FAF7F2;
  --ivory:        #F5F0E8;

  /* Neutrals */
  --bg:           #0A0A0C;
  --bg-1:         #111116;
  --bg-2:         #18181F;
  --bg-3:         #22222C;
  --border:       #2A2A38;
  --border-light: #3A3A4A;
  --text:         #E8E8F0;
  --text-dim:     #9090A8;
  --text-faint:   #555568;

  /* Typography */
  --font-serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --header-h:    64px;
  --radius:      8px;
  --radius-lg:   16px;
  --wrap:        1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ── Utilities ── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.site-nav a:hover { color: var(--text); }

/* Nav user menu */
.nav-user-menu {
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--bg);
  flex-shrink: 0;
}

.user-name { font-size: 0.85rem; color: var(--text); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 160px;
  background: var(--bg-1);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: rgba(200,169,110,0.08); color: var(--gold); }

/* ── Accent bar ── */
.accent-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--blush), var(--sage), transparent);
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 400px; background: var(--gold); top: 10%; left: 50%; transform: translateX(-50%); }
.hero-glow-2 { width: 400px; height: 400px; background: var(--blush); top: 20%; left: 10%; }
.hero-glow-3 { width: 350px; height: 350px; background: var(--sage); top: 30%; right: 8%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero h1 .gold { color: var(--gold); font-style: italic; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-light); color: var(--bg); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,169,110,0.25); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 12px 20px;
}
.btn-ghost:hover { color: var(--text); }

/* ── Feature Cards ── */
.features {
  padding: 80px 0;
}

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

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── How it works ── */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-1);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 60px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 auto 20px;
}

.step-number::before { content: counter(step); }

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,169,110,0.06) 0%, transparent 70%);
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-faint);
  transition: color 0.2s;
}

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

/* ── Dashboard Layout ── */
.dash-app {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.dash-main {
  flex: 1;
  margin-left: 240px;
  padding: 40px;
  max-width: calc(100vw - 240px);
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 24px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-left-color: var(--border-light);
}

.sidebar-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(200,169,110,0.06);
}

.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
}

.page-sub {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Cards ── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: middle;
}

.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Status badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold { background: rgba(200,169,110,0.15); color: var(--gold); border: 1px solid rgba(200,169,110,0.2); }
.badge-green { background: rgba(139,175,142,0.15); color: var(--sage); border: 1px solid rgba(139,175,142,0.2); }
.badge-gray  { background: rgba(144,144,168,0.1); color: var(--text-dim); border: 1px solid var(--border); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Login overlay ── */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(-45deg, #060608, #0e0a18, #080810, #120a1e);
  background-size: 300% 300%;
  animation: loginGrad 20s ease infinite;
  padding: 20px;
}

@keyframes loginGrad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.1; pointer-events: none;
}
.login-glow-1 { width: 500px; height: 300px; background: var(--gold); top: 10%; left: 20%; }
.login-glow-2 { width: 300px; height: 300px; background: var(--blush); bottom: 10%; right: 15%; }

.login-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px 40px;
  width: 100%; max-width: 400px;
  position: relative;
  animation: fadeUp 0.4s ease;
  box-shadow: 0 0 80px rgba(200,169,110,0.06), 0 20px 60px rgba(0,0,0,0.4);
}

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

.login-brand {
  text-align: center;
  margin-bottom: 8px;
}

.login-wordmark {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.login-sub {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.login-divider {
  text-align: center;
  margin: 14px 0;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
  margin-bottom: 10px;
}

.login-btn-apple { background: #F5F5F7; color: #000; }
.login-btn-apple:hover { background: #fff; box-shadow: 0 4px 20px rgba(245,245,247,0.15); }

.login-btn-email {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-light);
}
.login-btn-email:hover { border-color: var(--gold); color: var(--gold); }

.login-input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box; margin-bottom: 10px;
}
.login-input:focus { border-color: var(--gold); }
.login-input::placeholder { color: var(--text-faint); }

.login-submit {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 20px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,169,110,0.2); }
.login-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.login-error {
  font-size: 0.8rem; color: #ef4444;
  text-align: center; min-height: 1.2em;
  margin-bottom: 8px;
}

.login-back {
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-faint);
  background: none; border: none; cursor: pointer; margin-bottom: 10px;
  padding: 0;
}
.login-back:hover { color: var(--text-dim); }

.login-link {
  font-size: 0.75rem; color: var(--text-faint);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.login-link:hover { color: var(--text-dim); }

.login-footer {
  text-align: center; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.login-footer a {
  font-size: 0.7rem; color: var(--text-faint);
  letter-spacing: 0.06em;
}
.login-footer a:hover { color: var(--text-dim); }
.login-footer-sep { margin: 0 8px; color: var(--border-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .dash-sidebar {
    display: none;
  }
  .dash-main {
    margin-left: 0;
    max-width: 100vw;
    padding: 24px 16px;
  }
  .header-inner { padding: 0 20px; }
  .login-card { padding: 36px 28px 32px; }
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .login-card { padding: 32px 20px 28px; }
}
