/* ════════════════════════════════════════════════════════════════
   YPB · Yasi Power Boat — Shared Design System
   Brand chrome: deep navy + brushed steel + ocean accent
   Typography: Fraunces (display) + Inter (body, tabular numerals)
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces — slightly cooler, more cinematic */
  --bg: #0A141D;
  --bg-2: #0F1922;
  --bg-3: #16212C;
  --surface-light: #F4F5F6;
  --surface-light-2: #E8EAEC;

  /* Accents — warmer steel for more refined feel */
  --steel: #A4ADB5;
  --steel-bright: #C0C8CF;
  --ocean: #1E3A52;
  --ocean-bright: #2C5378;
  --ocean-glow: #4A7BA8;
  --warm: #C4B89E;     /* subtle warm accent for highlights */

  /* Text — slightly softer contrast */
  --text-on-dark: #E4E8EB;
  --text-on-dark-muted: #8A9099;
  --text-on-dark-dim: #525B65;
  --text-on-light: #161B20;
  --text-on-light-muted: #525B65;

  /* Lines — more delicate */
  --hairline: rgba(164, 173, 181, 0.12);
  --hairline-strong: rgba(164, 173, 181, 0.28);
  --hairline-light: rgba(0, 0, 0, 0.06);

  /* Type */
  --display: 'Fraunces', 'GT Sectra', 'Tiempos Headline', Georgia, serif;
  --display-classical: 'Italiana', 'Times New Roman', serif;
  --body: 'Inter', 'Söhne', 'Neue Haas Grotesk', system-ui, -apple-system, sans-serif;

  /* Spacing scale — more generous breathing room */
  --section-pad: 140px;
  --section-pad-tight: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── NAV ─────────────────────────────────────────────────────── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 22, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
nav.top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.monogram {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--text-on-dark);
  transition: color 0.18s ease;
}
.monogram span { color: var(--steel); }
.monogram:hover { color: var(--steel-bright); }
.nav-links {
  display: flex;
  gap: 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  margin-left: auto;
  margin-right: 32px;
}
.nav-links a {
  color: var(--text-on-dark-muted);
  transition: color 0.18s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a.current { color: var(--text-on-dark); }
.nav-links a.current::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0; right: 0;
  height: 1px;
  background: var(--ocean-bright);
}
.nav-cta {
  padding: 11px 26px;
  border: 1px solid var(--steel);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-on-dark);
  font-family: var(--body);
  background: transparent;          /* override <button> default grey bg */
  cursor: pointer;
  display: inline-block;
  border-radius: 0;                 /* override Safari rounded button */
  line-height: 1;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: var(--text-on-dark);
  border-color: var(--text-on-dark);
  color: var(--bg);
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(30, 58, 82, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(44, 83, 120, 0.25), transparent 70%),
    linear-gradient(180deg, #0B1620 0%, #08111A 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(154, 165, 174, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 165, 174, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 32px;
  font-weight: 500;
}

.display-1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 7.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  margin: 0 0 36px 0;
  max-width: 13ch;
}
.display-1 em {
  font-style: italic;
  color: var(--steel);
  font-weight: 200;
}

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--text-on-dark-muted);
  max-width: 56ch;
  line-height: 1.6;
  font-weight: 300;
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hairline);
}
section.light {
  background: var(--surface-light);
  color: var(--text-on-light);
  border-top: none;
}
section.light .eyebrow { color: var(--text-on-light-muted); }
section.light .section-title { color: var(--text-on-light); }
section.light .section-lede { color: var(--text-on-light-muted); }
section.light .display-1 em { color: var(--ocean); }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
  font-weight: 500;
}
.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 32px 0;
  max-width: 22ch;
}
.section-title em { font-style: italic; color: var(--steel); font-weight: 200; }
section.light .section-title em { color: var(--ocean); }
.section-lede {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  max-width: 60ch;
  margin: 0 0 80px 0;
  font-weight: 300;
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 18px 36px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--steel);
  color: var(--text-on-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.28s ease;
}
.btn:hover {
  background: var(--text-on-dark);
  border-color: var(--text-on-dark);
  color: var(--bg);
}
.btn-primary {
  background: var(--ocean-bright);
  border-color: var(--ocean-bright);
  color: white;
}
.btn-primary:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  color: white;
}
.btn-light {
  border-color: var(--text-on-light);
  color: var(--text-on-light);
}
.btn-light:hover {
  background: var(--text-on-light);
  color: var(--surface-light);
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer.site {
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--hairline);
  background: #08111A;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.wordmark {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.wordmark span { color: var(--steel); font-style: italic; }
.col-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
  font-weight: 500;
}
.col-content {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.7;
}
.col-content a {
  display: block;
  padding: 2px 0;
  color: var(--text-on-dark-muted);
  transition: color 0.18s ease;
}
.col-content a:hover { color: var(--text-on-dark); }
.footer-bar {
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  color: var(--text-on-dark-dim);
  font-size: 10px;
  letter-spacing: 0.28em;
  flex-wrap: wrap;
  gap: 16px;
  text-transform: uppercase;
}

/* ─── UTILS ───────────────────────────────────────────────────── */
.tabular { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--display); }
.italic { font-style: italic; }
.muted { color: var(--text-on-dark-muted); }
.steel { color: var(--steel); }
.divider { border: none; border-top: 1px solid var(--hairline); margin: 64px 0; }

.pull-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.3;
  max-width: 28ch;
  color: var(--steel-bright);
  margin: 64px 0;
  padding-left: 32px;
  border-left: 1px solid var(--ocean-bright);
}

/* ═══ Brand wordmark — Italiana ═══════════════════════════════════
   Replaces the Y·P·B monogram and old Fraunces footer wordmark.
   Loaded from Google Fonts on every page.
   ════════════════════════════════════════════════════════════════ */
.brand-wordmark-nav {
  font-family: 'Italiana', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.brand-wordmark-nav:hover { color: var(--warm); }
@media (max-width: 760px) {
  .brand-wordmark-nav { font-size: 15px; letter-spacing: 0.28em; }
}
@media (max-width: 540px) {
  .brand-wordmark-nav { font-size: 13px; letter-spacing: 0.22em; }
}

.brand-wordmark-footer {
  font-family: 'Italiana', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}
@media (max-width: 540px) {
  .brand-wordmark-footer { font-size: 22px; letter-spacing: 0.22em; }
}

/* Drop the old monogram + wordmark styles — keep them for reference but unused */

/* ═══ Model lineup cards (Freeman-style) ═══════════════════════ */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 760px) { .model-grid { grid-template-columns: 1fr; } }

.model-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--steel);
}
.model-card .visual {
  aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse 80% 60% at 50% 70%, rgba(30,58,82,0.45), transparent 70%),
              linear-gradient(180deg, #0F1B25 0%, #08111A 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.model-card .visual svg {
  width: 80%; height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.model-card .meta {
  padding: 28px 32px;
}
.model-card .label {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--steel);
  margin-bottom: 8px;
}
.model-card h3 {
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.18em;
  margin: 0 0 8px 0;
  line-height: 1.05;
}
.model-card .specs {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}
.model-card .specs strong {
  color: var(--text-on-dark);
  font-weight: 500;
  font-family: var(--display);
  font-size: 14px;
}
.model-card .arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 18px;
  color: var(--steel);
  transition: transform 0.2s ease;
}
.model-card:hover .arrow { transform: translate(4px, -4px); }

/* ═══ Auth forms (signup / login / account) ═══════════════════ */
.auth-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 80px 32px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(30,58,82,0.3), transparent 70%),
    var(--bg);
}
.auth-card {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.auth-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}
.auth-card .lede {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  margin: 0 0 32px 0;
  line-height: 1.55;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.auth-field input, .auth-field select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--hairline-strong);
  color: var(--text-on-dark);
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 3px;
  transition: border-color 0.18s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--ocean-bright);
}
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .auth-field-row { grid-template-columns: 1fr; gap: 0; } }
.auth-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-actions .btn { width: 100%; text-align: center; padding: 14px; }
.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}
.auth-foot a { color: var(--steel-bright); }
.auth-foot a:hover { color: var(--text-on-dark); }
.auth-foot .dot { margin: 0 10px; opacity: 0.5; }

/* Error pill shown on auth pages */
.auth-error {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.4);
  color: #f4b4b4;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

/* "or" divider between password and Google */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 16px;
  color: var(--text-on-dark-muted);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* Google sign-in button, YPB-themed */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-on-dark);
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-google:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--steel-bright);
}
.btn-google svg {
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

/* ═══ Account dashboard / saved builds ═══════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-top: 48px;
}
@media (max-width: 760px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-sidebar {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 32px 28px;
}
.dashboard-sidebar .user-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ocean);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  color: white;
  margin-bottom: 16px;
}
.dashboard-sidebar h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 4px 0;
}
.dashboard-sidebar .email {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
  word-break: break-all;
}
.dashboard-sidebar .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-sidebar .menu li {
  border-top: 1px solid var(--hairline);
}
.dashboard-sidebar .menu a {
  display: block;
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  transition: color 0.15s ease;
  letter-spacing: 0.04em;
}
.dashboard-sidebar .menu a:hover,
.dashboard-sidebar .menu a.current { color: var(--text-on-dark); }

.builds-list {
  display: grid;
  gap: 12px;
}
.build-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  align-items: center;
}
.build-row .model {
  font-family: 'Italiana', serif;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.build-row .title {
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 4px;
}
.build-row .when {
  font-size: 12px;
  color: var(--text-on-dark-muted);
}
.build-row .actions { display: flex; gap: 8px; }
.build-row .actions a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  transition: all 0.15s ease;
}
.build-row .actions a:hover { background: var(--bg-3); border-color: var(--steel); }

.empty-state {
  padding: 80px 32px;
  text-align: center;
  border: 1px dashed var(--hairline-strong);
 

/* ═══ Wider nav — logo far left, links far right ═══════════════ */
nav.top > .container {
  max-width: none;
  width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}
@media (max-width: 760px) {
  nav.top > .container { padding-left: 20px; padding-right: 20px; }
}
