:root {
  --ink: #09090b;
  --ink-soft: #111116;
  --surface: #15151c;
  --white: #fff;
  --muted: #aaaab7;
  --line: rgba(255, 255, 255, 0.12);
  --lilac: #e0bcff;
  --violet: #7137f5;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(9, 9, 11, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-content { min-height: 82px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.brand { flex: 0 0 auto; width: 154px; }
.brand img { width: 100%; height: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 700; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--white); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 17px; }
.button-primary { background: linear-gradient(125deg, var(--lilac), var(--violet)); box-shadow: 0 14px 38px rgba(113, 55, 245, .28); color: var(--white); }
.button-primary:hover { box-shadow: 0 19px 42px rgba(113, 55, 245, .42); }
.button-outline { border: 1px solid rgba(224, 188, 255, .64); color: var(--lilac); }
.button-outline:hover { background: var(--lilac); color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--lilac); }

.hero { position: relative; display: flex; min-height: min(720px, calc(100vh - 82px)); align-items: center; isolation: isolate; overflow: hidden; background: linear-gradient(115deg, var(--ink) 20%, #100a1d 100%); }
section[id], main[id] { scroll-margin-top: 98px; }
.hero-content { position: relative; z-index: 1; padding: 106px 0 116px; }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(24px); pointer-events: none; }
.hero-orb-one { top: 4%; right: -10%; width: min(58vw, 760px); aspect-ratio: 1; background: radial-gradient(circle, rgba(113,55,245,.43), rgba(113,55,245,0) 68%); }
.hero-orb-two { right: 24%; bottom: -42%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(224,188,255,.12), rgba(224,188,255,0) 68%); }

.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .17em; line-height: 1.2; text-transform: uppercase; }
.eyebrow-violet { color: var(--lilac); }
.hero h1, .section-heading h2, .trade-content h2, .contact-content h2 { margin: 0; letter-spacing: -.065em; line-height: .98; }
.hero h1 { max-width: 860px; margin-top: 22px; font-size: clamp(52px, 8vw, 96px); }
.hero-copy { max-width: 590px; margin: 28px 0 36px; color: #c5c4d0; font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.text-action { display: inline-flex; align-items: center; gap: 9px; color: var(--lilac); font-size: 14px; font-weight: 800; }
.text-action span { transition: transform .2s ease; }
.text-action:hover span { transform: translateX(4px); }

.inventory-section, .principles-section, .contact-section { padding: 112px 0; }
.inventory-section { background: #0e0e13; }
.section-heading { max-width: 690px; margin-bottom: 42px; }
.section-heading h2 { margin-top: 15px; font-size: clamp(38px, 5vw, 62px); }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.section-heading-row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading-row > p { max-width: 350px; margin-bottom: 4px; }

.cars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.car-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-soft); box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.car-image { position: relative; aspect-ratio: 1.4 / 1; overflow: hidden; background: #1a1722; }
.car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.car-card:hover .car-image img { transform: scale(1.04); }
.car-image-fallback { background: radial-gradient(circle at 75% 12%, rgba(113,55,245,.62), transparent 28%), linear-gradient(145deg, #242034, #111116 65%); }
.car-image-fallback::after { position: absolute; right: 11%; bottom: 12%; color: rgba(224,188,255,.8); content: "⌁"; font-size: 100px; transform: rotate(-28deg); }
.car-badge { position: absolute; top: 14px; left: 14px; z-index: 1; margin: 0; padding: 7px 10px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(9,9,11,.78); backdrop-filter: blur(8px); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.car-content { padding: 22px; }
.car-content h3 { margin: 0; font-size: 22px; letter-spacing: -.035em; line-height: 1.15; }
.car-specs { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 16px 0 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.car-specs li + li::before { margin: 0 8px; color: #60606d; content: "·"; }
.car-description { min-height: 50px; margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.car-footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 24px; }
.car-price { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.car-footer .text-action { flex: 0 0 auto; }

.sold-section { padding: 112px 0; background: radial-gradient(circle at 90% 10%, rgba(113, 55, 245, .22), transparent 32%), #101016; }
.sold-cars-grid { display: grid; gap: 20px; }
.sold-car-card { width: 100%; min-width: 0; max-width: 920px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(224,188,255,.25); border-radius: var(--radius); background: var(--ink-soft); box-shadow: 0 14px 38px rgba(0,0,0,.2); }
.sold-gallery { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1722; }
.sold-gallery { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sold-gallery-image { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.sold-gallery-fallback { background: radial-gradient(circle at 75% 12%, rgba(113,55,245,.62), transparent 28%), linear-gradient(145deg, #242034, #111116 65%); }
.sold-watermark { position: absolute; top: 50%; left: 50%; z-index: 1; margin: 0; padding: 10px 24px; border: 1px solid rgba(255,255,255,.68); background: rgba(113,55,245,.76); box-shadow: 0 12px 35px rgba(0,0,0,.28); color: var(--white); font-size: clamp(29px, 5vw, 58px); font-weight: 900; letter-spacing: .12em; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,.35); transform: translate(-50%, -50%) rotate(-11deg); pointer-events: none; }
.carousel-controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.carousel-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; background: rgba(9,9,11,.78); color: var(--white); cursor: pointer; font-size: 19px; transition: background .2s ease, transform .2s ease; }
.carousel-button:hover { background: var(--violet); transform: translateY(-2px); }
.carousel-counter { position: absolute; z-index: 2; bottom: 26px; left: 20px; margin: 0; color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-shadow: 0 2px 7px rgba(0,0,0,.55); }
.sold-car-content { padding: 28px 32px 32px; border-top: 1px solid var(--line); }
.sold-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; margin: 0; }
.sold-specs div { min-width: 0; }
.sold-specs dt { margin: 0 0 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sold-specs dd { margin: 0; color: var(--white); font-size: 15px; font-weight: 750; overflow-wrap: anywhere; }

.empty-state { display: flex; min-height: 330px; flex-direction: column; align-items: center; justify-content: center; padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 5%, rgba(113,55,245,.25), transparent 45%), var(--ink-soft); text-align: center; }
.empty-icon { display: grid; width: 70px; height: 70px; place-items: center; margin-bottom: 22px; border: 1px solid var(--lilac); border-radius: 50%; color: var(--lilac); font-size: 37px; transform: rotate(-28deg); }
.empty-state h3 { margin: 8px 0 6px; font-size: 27px; letter-spacing: -.04em; }
.empty-state > p:not(.eyebrow) { max-width: 450px; margin: 0; color: var(--muted); }
.empty-state .text-action { margin-top: 22px; }

.principles-section { background: #eee8fb; color: #17131d; }
.principles-heading { max-width: 620px; }
.principles-heading .eyebrow { color: #6b35dc; }
.principles-heading > p:last-child { color: #5f5969; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(31, 21, 45, .15); }
.principle { min-height: 240px; padding: 32px 34px 8px 0; }
.principle + .principle { padding-left: 34px; border-left: 1px solid rgba(31, 21, 45, .15); }
.principle-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 27px; border-radius: 50%; background: linear-gradient(135deg, #fff, #d8c9ff); box-shadow: 0 8px 20px rgba(86, 46, 157, .15); color: #6430dc; font-size: 24px; font-weight: 800; }
.principle h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.04em; }
.principle p { max-width: 270px; margin: 0; color: #5f5969; font-size: 15px; }

.trade-section { padding: 76px 0; background: linear-gradient(120deg, #2a1254, var(--violet)); }
.trade-content { display: grid; grid-template-columns: minmax(0, 650px) auto; align-items: center; justify-content: space-between; gap: 42px; }
.trade-content h2 { max-width: 640px; margin-top: 13px; font-size: clamp(36px, 5vw, 58px); }
.trade-content p:last-child { max-width: 580px; margin: 16px 0 0; color: #e8dfff; }

.contact-section { text-align: center; }
.contact-content { display: flex; flex-direction: column; align-items: center; }
.contact-content h2 { max-width: 810px; margin-top: 18px; font-size: clamp(42px, 6vw, 74px); }
.contact-content > p:not(.eyebrow):not(.location) { max-width: 520px; margin: 23px 0 0; color: var(--muted); }
.email-link, .phone-link { color: var(--lilac); font-size: clamp(23px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.055em; }
.email-link { margin-top: 26px; }
.phone-link { margin-top: 6px; }
.location { margin: 16px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer-content { display: flex; justify-content: space-between; gap: 16px; }
.footer-content p { margin: 0; }

@media (max-width: 850px) {
  .cars-grid, .principles-grid { grid-template-columns: 1fr; }
  .car-card { display: grid; grid-template-columns: minmax(220px, .85fr) 1fr; }
  .car-image { aspect-ratio: auto; min-height: 270px; }
  .section-heading-row { display: block; }
  .section-heading-row > p { max-width: 540px; }
  .principles-grid { border-top: 0; }
  .principle, .principle + .principle { min-height: 0; padding: 25px 0; border-top: 1px solid rgba(31, 21, 45, .15); border-left: 0; }
  .sold-gallery { min-height: min(64vw, 500px); }
}

@media (max-width: 640px) {
  .container { width: min(1120px, calc(100% - 32px)); }
  .header-content { min-height: 70px; gap: 14px; }
  .brand { width: 126px; }
  .main-nav { display: none; }
  .header-content .button-small { margin-left: auto; min-height: 38px; padding: 8px 13px; font-size: 12px; }
  .hero { min-height: 620px; }
  .hero-content { padding: 86px 0; }
  .hero h1 { font-size: clamp(47px, 14vw, 70px); }
  .hero-copy { font-size: 17px; }
  .inventory-section, .principles-section, .contact-section { padding: 76px 0; }
  .sold-section { padding: 76px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 39px; }
  .car-card { display: block; }
  .car-image { min-height: 0; aspect-ratio: 1.45 / 1; }
  .car-description { min-height: 0; }
  .sold-gallery { min-height: 0; aspect-ratio: 4 / 3; }
  .sold-car-content { padding: 25px 22px 26px; }
  .sold-watermark { padding: 8px 15px; }
  .sold-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
  .principle-icon { width: 44px; height: 44px; margin-bottom: 18px; font-size: 21px; }
  .trade-section { padding: 64px 0; }
  .trade-content { display: block; }
  .trade-content .button { margin-top: 28px; }
  .footer-content { display: block; }
  .footer-content p + p { margin-top: 7px; }
}
