@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Premium Dark Palette */
  --bg: #080c14;
  --surface: #0d1220;
  --card: #111827;
  --card-hover: #151d2e;
  --text: #f8fafc;
  --text-secondary: #e2e8f0;
  --muted: #94a3b8;
  --muted-light: #64748b;
  
  /* Accent Colors - Refined Gold & Teal */
  --brand: #c9a962;
  --brand-light: #e4d4a5;
  --brand-glow: rgba(201, 169, 98, 0.15);
  --accent: #5eead4;
  --accent-muted: rgba(94, 234, 212, 0.1);
  
  /* Borders & Effects */
  --stroke: rgba(255, 255, 255, 0.06);
  --stroke-hover: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 80px rgba(201, 169, 98, 0.08);
  
  /* Spacing & Layout */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1200px;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Effects */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1000px 600px at 15% 5%, rgba(201, 169, 98, 0.08), transparent 50%),
    radial-gradient(ellipse 800px 500px at 85% 10%, rgba(94, 234, 212, 0.05), transparent 45%),
    radial-gradient(ellipse 1200px 800px at 50% 100%, rgba(201, 169, 98, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Grid Pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--brand-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.small {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

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

/* Premium Badge */
.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.1), rgba(201, 169, 98, 0.05));
  border: 1px solid rgba(201, 169, 98, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-light);
  backdrop-filter: blur(10px);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Separator */
hr.sep {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-hover), transparent);
  margin: 32px 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
═══════════════════════════════════════════════════════════ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(8, 12, 20, 0.8);
  border-bottom: 1px solid var(--stroke);
  transition: all 0.3s var(--ease);
}

header.site-header.scrolled {
  background: rgba(8, 12, 20, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand .name {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand .tag {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width 0.2s var(--ease);
  border-radius: 2px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 20px;
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS - Premium Styling
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--stroke-hover);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn:hover::before {
  opacity: 1;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--brand), #b8943f);
  border: none;
  color: #0a0d12;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 8px 30px rgba(201, 169, 98, 0.4);
  transform: translateY(-2px);
}

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

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--stroke-hover);
}

.icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.menu-btn {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 16px 0 20px;
  letter-spacing: -0.03em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 50%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 15px var(--brand);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.7;
  max-width: 520px;
}

/* Hero Card - Featured Property */
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--stroke-hover);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.5), transparent);
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5), 0 0 100px rgba(201, 169, 98, 0.1);
  border-color: rgba(201, 169, 98, 0.2);
}

.hero-media {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 12, 20, 0.8) 100%);
}

.hero-card .pad {
  padding: 20px 24px 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--stroke);
  text-align: center;
  transition: all 0.25s var(--ease);
}

.stat:hover {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(201, 169, 98, 0.2);
  transform: translateY(-2px);
}

.stat .n {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brand-light);
  letter-spacing: -0.02em;
}

.stat .l {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS & GRIDS
═══════════════════════════════════════════════════════════ */
.section {
  padding: 60px 0;
}

.section h2 {
  margin: 0 0 24px;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 3px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS - Premium Property Cards
═══════════════════════════════════════════════════════════ */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 98, 0.15);
  box-shadow: var(--shadow), 0 0 60px rgba(201, 169, 98, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.card .meta {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Pills/Tags */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 6px;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
}

.pill:hover {
  border-color: rgba(201, 169, 98, 0.3);
  color: var(--brand-light);
  background: rgba(201, 169, 98, 0.08);
}


.process-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.process-pills .pill {
  position: relative;
}

.process-pills .pill:not(:last-child)::after {
  content: "";
  margin-left: 10px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .process-pills {
    gap: 10px;
  }

  .process-pills .pill::after {
    display: none;
  }
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Callout Card */
.callout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.12) 0%, rgba(94, 234, 212, 0.05) 100%);
  border: 1px solid rgba(201, 169, 98, 0.25);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.callout strong {
  font-size: 1.1rem;
  color: var(--brand-light);
}

.callout .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FORMS - Elegant Input Styling
═══════════════════════════════════════════════════════════ */
form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(8, 12, 20, 0.8);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--stroke-hover);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.12);
  background: rgba(8, 12, 20, 0.95);
}

.help {
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 6px;
}

.notice {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   TABLES - Clean Data Display
═══════════════════════════════════════════════════════════ */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.03);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table td {
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   TABS - Modern Tab Navigation
═══════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.tab {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s var(--ease);
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  color: var(--brand-light);
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.08));
  box-shadow: 0 2px 10px rgba(201, 169, 98, 0.15);
}

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  padding: 50px 0 60px;
  border-top: 1px solid var(--stroke);
  margin-top: 60px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr 0.6fr;
  gap: 32px;
  align-items: start;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
  display: block;
  padding: 4px 0;
}

.footer-grid a:hover {
  color: var(--brand-light);
  transform: translateX(4px);
}

.legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--muted-light);
  font-size: 0.85rem;
  text-align: center;
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  animation: fadeUp 0.6s var(--ease) forwards;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-media {
    min-height: 280px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 50px 0 30px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .split {
    grid-template-columns: 1fr;
  }
  
  form .row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: inline-flex;
  }
  
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--stroke);
    padding: 16px;
    border-radius: var(--radius-lg);
    gap: 4px;
    box-shadow: var(--shadow);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* Print Styles */
@media print {
  header.site-header,
  .btn,
  .nav-cta,
  footer {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  body::before,
  body::after {
    display: none;
  }
  
  .card,
  .hero-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Selection */
::selection {
  background: rgba(201, 169, 98, 0.3);
  color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--card);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-light);
}

/* ═══════════════════════════════════════════════════════════
   CALENDAR EMBED - Elegant Styling for Embedded Calendars
═══════════════════════════════════════════════════════════ */

.calendar-shell {
  margin: 24px 0 32px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.calendar-shell__header {
  margin-bottom: 14px;
}

.calendar-shell__header h2 {
  margin: 0 0 6px;
  color: #0f172a;
}

.calendar-shell__header p {
  margin: 0;
  color: #475569;
}

.calendar-embed {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
  border-radius: 18px;
  background: #f2ecda;
}




/* ═══════════════════════════════════════════════════════════
   AI CHATBOT - clean, tight, on-brand
═══════════════════════════════════════════════════════════ */
.ai-section {
  padding: 18px 0 56px;
}

.ai-shell {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.ai-shell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.45), transparent);
  pointer-events: none;
}

.ai-top {
  margin-bottom: 18px;
}

.ai-top .badge {
  margin-bottom: 8px;
}

.ai-top h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ai-sub {
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.ai-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.ai-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.ai-chip:hover {
  color: var(--brand-light);
  border-color: rgba(201, 169, 98, 0.28);
  background: rgba(201, 169, 98, 0.08);
  transform: translateY(-1px);
}

.ai-chip:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.12);
}

.kh-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 40px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.82), rgba(13, 18, 32, 0.94));
}

.kh-msg {
  display: inline-block;
  max-width: 82%;
  padding: 13px 15px;
  border-radius: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 0.96rem;
  animation: fadeUp 0.35s var(--ease);
}

.kh-bot {
  align-self: flex-start;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}

.kh-user {
  align-self: flex-end;
  color: #0a0d12;
  background: linear-gradient(135deg, var(--brand), #b8943f);
  box-shadow: 0 8px 22px rgba(201, 169, 98, 0.18);
  font-weight: 600;
}

.kh-chat-form textarea {
  min-height: 92px;
  margin-bottom: 12px;
}

.kh-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.kh-chat-actions .small {
  margin: 0;
}

.kh-chat-actions .btn {
  min-width: 150px;
}

.kh-chat-form .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.kh-chat-form .btn[disabled]:hover {
  transform: none;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

@media (max-width: 768px) {
  .ai-section {
    padding: 10px 0 40px;
  }

  .ai-shell {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .ai-top h2 {
    margin-top: 12px;
    font-size: 1.65rem;
  }

  .ai-sub {
    font-size: 0.98rem;
  }

  .ai-examples {
    gap: 8px;
  }

  .ai-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .kh-chat-log {
    min-height: 40px;
    max-height: 280px;
    padding: 14px;
  }

  .kh-msg {
    max-width: 92%;
  }

  .kh-chat-form textarea {
    min-height: 84px;
  }

  .kh-chat-actions {
    align-items: stretch;
  }

  .kh-chat-actions .btn {
    width: 100%;
    min-width: 0;
  }
}