/* ==========================================================================
   FREIGHTFOLIO - Website Design Agency
   Design system: restrained editorial dark theme (periwinkle on near-black).
   Tokens mirror the approved reference mockup.
   ========================================================================== */

:root {
  /* Reference tokens */
  --bg: #090b10;
  --ink: #f3f4f8;
  --muted: #979eaf;
  --line: #ffffff20;
  --accent: #a1adff;
  --accent-soft: #b6c2ff;
  --btn-bg: #dbe1ff;
  --btn-ink: #111523;
  --eyebrow: #b5bacc;
  --nav-link: #c5c8d3;

  /* Legacy aliases used by inline styles in HTML */
  --brand-cyan: #a1adff;
  --faint: #7d859c;
  --text: #f3f4f8;
  --border: #ffffff20;

  /* Type */
  --font-body: "DM Sans", Arial, sans-serif;
  --font-head: "Manrope", Arial, sans-serif;

  /* Shape */
  --radius: 8px;
  --radius-lg: 10px;

  /* Layout */
  --container: 1400px;
  --header-h: 92px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

h1, h2, h3, h4, p { margin: 0; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(52px, 6.5vw, 104px); line-height: 1.06; margin: 0 0 30px; }
h2 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.13; margin: 20px 0 0.6em; }
h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin: 0 0 12px; color: var(--ink); }
h4 { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin: 0 0 1rem; color: var(--ink); }

p { line-height: 1.7; color: var(--muted); margin: 0 0 1em; }
p strong, li strong { color: var(--ink); }

em { font-style: normal; color: var(--accent); }

/* Former gradient-text spans: now periwinkle, non-italic, like the reference */
.grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
  font-style: normal;
}

.container { width: min(var(--container), 100%); margin-inline: auto; }

.section { padding: 72px 6%; border-bottom: 1px solid var(--line); position: relative; }
.section-tight { padding: 48px 6%; border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 1rem;
}

.lead { font-size: 17px; max-width: 42rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 18px 25px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: #fff; transform: translateY(-2px); }

.btn-primary { /* primary = the pale-lavender button */ }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #ffffff40;
  font-weight: 600;
}
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 18px 28px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  height: var(--header-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.94);
}

.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }

.brand {
  font-weight: 700;
  letter-spacing: -0.7px;
  font-size: 23px;
  color: var(--ink) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}
.brand .dot { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  color: var(--nav-link);
  font-size: 13px;
  text-decoration: none !important;
  transition: color 0.15s;
}
.nav-menu a:hover { color: #fff; }
.nav-menu a.active { color: #fff; }

.nav-cta { margin-left: 0.6rem; padding: 13px 20px !important; }
.nav-menu a.nav-cta { color: #111523; }
.nav-menu a.nav-cta:hover { color: #111523; }

/* ---------- Mobile sticky bottom CTA ---------- */.mobile-cta-bar { display: none; }
@media (max-width: 900px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    align-items: center;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(9, 11, 16, 0.94);
    border-top: 1px solid var(--line);
  }
  .mobile-cta-bar .btn { flex: 1; text-align: center; padding: 15px 20px; }
  .mobile-cta-close {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  body.has-mobile-cta { padding-bottom: 88px; }
  body.has-mobile-cta .footer { padding-bottom: 0; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.7rem 0.65rem;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 5% 44px;
  background: radial-gradient(ellipse at 55% 71%, #303f8755, transparent 58%);
  border-bottom: 1px solid var(--line);
}

#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

.hero-copy .eyebrow { margin-bottom: 1.2rem; }
.hero-copy h1 { margin: 0 0 30px; }
.hero-copy .lead { font-size: 17px; margin-bottom: 2rem; max-width: 34rem; }
.hero-copy .lead strong { color: #e7eaff; font-weight: 700; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-note { font-size: 11px; color: var(--muted); }

/* Floating mockup cards, reference showroom treatment */
.hero-visual { perspective: 1400px; position: relative; min-height: 480px; }

.mockup {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ffffff38;
  background: #202534;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
}
.mockup img { width: 100%; height: auto; }

.mockup-1 { width: 78%; top: 0; left: 6%; transform: rotateY(-14deg) rotateX(6deg); z-index: 3; }
.mockup-2 { width: 62%; bottom: 4%; right: 0; transform: rotateY(12deg) rotateX(-4deg); z-index: 2; }
.mockup-3 { width: 46%; top: 6%; right: 4%; transform: rotateY(16deg) rotateX(8deg); z-index: 1; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 35px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #9baaff; }
.card h3 { margin-bottom: 12px; font-size: 22px; }
.card p { font-size: 14px; margin-bottom: 0; }

.card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* ---------- Steps (homepage teaser, reference treatment) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: transparent;
  border: 0;
  border-top: 1px solid #ffffff38;
  border-radius: 0;
  text-align: left;
  padding: 24px 0;
}
.step-num {
  display: block;
  color: #a4b3ed;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.step h3 { font-size: 20px; line-height: 1.5; margin-bottom: 0.6rem; }
.step p { font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 35px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.price-card:hover { transform: translateY(-6px); border-color: #9baaff; }
.price-card .tier {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 24px;
}
.price-card .amount {
  font-family: var(--font-head);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--ink);
}
.price-card .amount small { font-size: 13px; color: #aeb9d0; letter-spacing: 0; font-weight: 400; }
.price-card .upfront {
  display: inline-block;
  color: #c2ceff;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 22px;
}
.price-card ul { list-style: none; margin: 0 0 1.8rem; padding: 25px 0 0; border-top: 1px solid var(--line); flex: 1; }
.price-card li { font-size: 12px; color: #c4c9d7; margin-bottom: 14px; padding-left: 1.5rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #9dafff; font-weight: 700; }

.price-card.best-fit {
  border-color: #9baaff;
  background: radial-gradient(ellipse at top right, #424e8255, transparent 70%), #121723;
  box-shadow: 0 0 45px #647cee0b;
}
.price-card.best-fit:hover { transform: translateY(-6px); }
.best-fit-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #c2ceff;
  background: var(--bg);
  border: 1px solid #9baaff;
  border-radius: 999px;
  padding: 0.35rem 1rem;
}

.zero-banner {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, #303f8755, transparent 65%);
  margin-bottom: 3rem;
}
.zero-banner .zero {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.065em;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-style: normal;
}
.zero-banner p { max-width: 40rem; margin: 0 auto; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 0.9rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table tbody tr:hover { background: rgba(161, 173, 255, 0.05); }
.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .no { color: var(--faint); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; perspective: 1200px; }

.concept-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #151924;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.concept-card:hover { border-color: #9baaff; box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5); }
.concept-card .shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.concept-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.concept-card:hover .shot img { transform: scale(1.04); }
.concept-card .concept-glow {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(161, 173, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.concept-card:hover .concept-glow { opacity: 1; }
.concept-card .meta { padding: 1.3rem 1.4rem 1.5rem; position: relative; z-index: 1; }
.concept-card .meta h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.concept-card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #c7d2ff;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  margin-bottom: 0.8rem;
}
.concept-card .meta p { font-size: 0.92rem; margin: 0; }
.concept-flag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(9, 11, 16, 0.85);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(1020px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #111621;
  color: #fff;
  border: 1px solid #515c78;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.28s ease;
}
@keyframes modal-in { from { transform: translateY(24px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.8rem 0; }
.modal-head h2 { margin: 0; font-size: 1.7rem; }
.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: #c1c9dc;
  font-size: 1.3rem;
  width: 42px; height: 42px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 7px 10px;
}
.modal-close:hover { border-color: var(--accent); color: #fff; }
.modal-body { padding: 1.2rem 1.8rem 2rem; }
.modal-body p { color: #bec7db; }
.modal-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 1rem; background: #fff; }
.modal-shot img { width: 100%; height: auto; }
.device-toggle { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; }
.device-toggle button {
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: #c1c9dc;
  cursor: pointer;
}
.device-toggle button.active { background: #dce2ff; color: #141726; border-color: transparent; }
.modal-features { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.modal-features li { font-size: 0.95rem; color: #bec7db; padding-left: 1.7rem; position: relative; line-height: 1.5; margin: 0; }
.modal-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.disclaimer {
  border-left: 2px solid #919ed3;
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.4px;
  line-height: 1.7;
  color: #d4dcf6;
  margin-bottom: 1.6rem;
  max-width: 720px;
}
.disclaimer strong { color: #e7eaff; }
.modal-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Design Lab ---------- */
.lab-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin-bottom: 2rem; }
.lab-group { background: transparent; border: 0; border-radius: 0; padding: 0; }
.lab-group h3 {
  display: block;
  color: #b3bdd5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 12px 0 16px;
  font-family: var(--font-body);
}
.lab-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab-options button {
  background: none;
  color: #c5cada;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lab-options button:hover { border-color: var(--accent); color: #fff; }
.lab-options button.active { color: #fff; background: #303d70; border-color: #a5b3ef; }

.lab-stage {
  border: 1px solid #ffffff25;
  border-radius: 9px;
  overflow: hidden;
  background: #151924;
  margin-bottom: 3rem;
}
.lab-frame-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.lab-frame-bar strong { color: var(--accent); font-weight: 600; }
.lab-frame-bar .device-toggle { margin-bottom: 0; }
.lab-viewport { transition: max-width 0.3s ease; margin: 0 auto; max-width: 100%; }
.lab-viewport.mobile { max-width: 390px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- Design Lab mini preview themes (fictional sample designs; keep distinct) ---------- */
.mini { min-height: 560px; font-size: 15px; }
.mini a { text-decoration: none; }

/* MODERN */
.mini-modern { background: #f6f8fc; color: #16202e; font-family: "DM Sans", system-ui, sans-serif; }
.mini-modern .m-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.6rem; background: #fff; border-bottom: 1px solid #e4e9f2; }
.mini-modern .m-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #1d4ed8; }
.mini-modern .m-links { display: flex; gap: 1.2rem; font-size: 0.85rem; color: #5b6b82; }
.mini-modern .m-hero { padding: 3.4rem 1.6rem; text-align: center; background: #1d4ed8; color: #fff; }
.mini-modern .m-hero h4 { font-family: var(--font-head); font-size: 2rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; color: #16202e; }
.mini-modern .m-hero p { color: rgba(255,255,255,0.85); margin: 0 0 1.4rem; }
.mini-modern .m-btn { display: inline-block; background: #fff; color: #1d4ed8; font-weight: 600; padding: 0.7rem 1.6rem; border-radius: 999px; font-size: 0.9rem; }
.mini-modern .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 2rem 1.6rem; }
.mini-modern .m-card { background: #fff; border: 1px solid #e4e9f2; border-radius: 14px; padding: 1.3rem; }
.mini-modern .m-card h5 { font-family: var(--font-head); margin: 0 0 0.4rem; color: #16202e; font-size: 1rem; }
.mini-modern .m-card p { font-size: 0.85rem; color: #5b6b82; margin: 0; }
.mini-modern .m-foot { padding: 1.4rem 1.6rem; background: #16202e; color: #9fb0c8; font-size: 0.82rem; display: flex; justify-content: space-between; }

/* LUXURY */
.mini-luxury { background: #0d0b07; color: #e9e2d2; font-family: Georgia, serif; text-align: center; }
.mini-luxury .m-nav { padding: 1.6rem; border-bottom: 1px solid rgba(201,162,39,0.25); }
.mini-luxury .m-logo { font-size: 1.5rem; letter-spacing: 0.28em; text-transform: uppercase; color: #d4af37; }
.mini-luxury .m-kicker { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: #9a8c66; margin: 3rem 0 1rem; }
.mini-luxury .m-hero h4 { font-size: 2.6rem; font-weight: 500; margin: 0 0 1rem; color: #f4ecd8; }
.mini-luxury .m-rule { width: 64px; height: 1px; background: #d4af37; margin: 0 auto 1.2rem; }
.mini-luxury .m-hero p { font-family: var(--font-body); font-size: 0.95rem; color: #b3a67f; max-width: 26rem; margin: 0 auto 1.8rem; font-style: italic; }
.mini-luxury .m-btn { display: inline-block; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: #d4af37; border: 1px solid #d4af37; padding: 0.9rem 2.4rem; }
.mini-luxury .m-cards { padding: 3rem 2rem; max-width: 34rem; margin: 0 auto; }
.mini-luxury .m-card { border-top: 1px solid rgba(201,162,39,0.25); padding: 1.6rem 0; }
.mini-luxury .m-card:last-child { border-bottom: 1px solid rgba(201,162,39,0.25); }
.mini-luxury .m-card h5 { font-size: 1.3rem; margin: 0 0 0.4rem; color: #f4ecd8; font-weight: 500; }
.mini-luxury .m-card p { font-family: var(--font-body); font-size: 0.88rem; color: #9a8c66; margin: 0; }
.mini-luxury .m-foot { font-family: var(--font-body); padding: 2rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9a8c66; border-top: 1px solid rgba(201,162,39,0.25); }

/* BOLD */
.mini-bold { background: #0b0b0b; color: #f5f5f0; font-family: "Arial Black", Arial, sans-serif; }
.mini-bold .m-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; background: #ff4d00; color: #0b0b0b; }
.mini-bold .m-logo { font-size: 1.2rem; letter-spacing: 0.06em; }
.mini-bold .m-links { display: flex; gap: 1rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.mini-bold .m-hero { padding: 3rem 1.4rem 4rem; background: #0b0b0b; }
.mini-bold .m-kicker { font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #ff4d00; margin-bottom: 0.8rem; }
.mini-bold .m-hero h4 { font-size: 3.2rem; line-height: 0.95; text-transform: uppercase; margin: 0 0 1.2rem; }
.mini-bold .m-hero h4 em { font-style: normal; color: #ff4d00; }
.mini-bold .m-btn { display: inline-block; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; background: #ff4d00; color: #0b0b0b; padding: 0.9rem 2rem; }
.mini-bold .m-cards { padding: 1rem 1.4rem 3rem; display: grid; gap: 0.8rem; }
.mini-bold .m-card { background: #161616; border-left: 6px solid #ff4d00; padding: 1.2rem 1.4rem; }
.mini-bold .m-card h5 { font-size: 1.25rem; text-transform: uppercase; margin: 0 0 0.3rem; letter-spacing: 0.03em; }
.mini-bold .m-card p { font-family: var(--font-body); font-size: 0.87rem; color: #a3a3a3; margin: 0; }
.mini-bold .m-foot { background: #ff4d00; color: #0b0b0b; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; }

/* MINIMAL */
.mini-minimal { background: #fafaf8; color: #1a1a1a; font-family: var(--font-body); }
.mini-minimal .m-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.8rem 2.4rem; border-bottom: 1px solid #e5e2da; }
.mini-minimal .m-logo { font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.mini-minimal .m-links { display: flex; gap: 1.6rem; font-size: 0.82rem; color: #777; }
.mini-minimal .m-hero { padding: 5rem 2.4rem; max-width: 40rem; }
.mini-minimal .m-kicker { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: #999; margin-bottom: 1.4rem; }
.mini-minimal .m-hero h4 { font-size: 2.4rem; font-weight: 300; letter-spacing: -0.02em; margin: 0 0 1.2rem; line-height: 1.2; color: #1a1a1a; }
.mini-minimal .m-hero p { color: #666; font-size: 1rem; margin: 0 0 2rem; font-weight: 300; }
.mini-minimal .m-btn { display: inline-block; font-size: 0.85rem; color: #1a1a1a; border-bottom: 1px solid #1a1a1a; padding-bottom: 0.2rem; }
.mini-minimal .m-cards { padding: 0 2.4rem 4rem; max-width: 40rem; }
.mini-minimal .m-card { border-top: 1px solid #e5e2da; padding: 1.6rem 0; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.mini-minimal .m-card:last-child { border-bottom: 1px solid #e5e2da; }
.mini-minimal .m-num { font-size: 0.8rem; color: #aaa; }
.mini-minimal .m-card h5 { font-size: 1.05rem; font-weight: 500; margin: 0 0 0.3rem; }
.mini-minimal .m-card p { font-size: 0.9rem; color: #777; margin: 0; font-weight: 300; }
.mini-minimal .m-foot { padding: 2rem 2.4rem; border-top: 1px solid #e5e2da; font-size: 0.8rem; color: #999; display: flex; justify-content: space-between; }

/* ---------- Forms ---------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 760px;
  margin-inline: auto;
  background: transparent;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: #c4ccdf; margin-bottom: 9px; }
.field label .req { color: var(--accent); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field select, .field textarea {
  width: 100%;
  border: 1px solid #ffffff26;
  background: #11151f;
  color: #fff;
  padding: 13px;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.15s;
}
.field select option { background: #11151f; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(182, 194, 255, 0.18);
}
.field .hint { font-size: 11px; color: #a0a8bc; margin-top: 0.35rem; line-height: 1.7; }
.field .error { display: none; font-size: 13px; color: #ff8a8a; margin-top: 0.35rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; }
.field.invalid .error { display: block; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.check-item {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  transition: border-color 0.15s;
}
.check-item:hover { border-color: var(--accent); color: var(--ink); }
.check-item input { accent-color: var(--accent); width: 18px; height: 18px; }

.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: center; padding: 3rem 1.5rem; }
.form-success.show { display: block; }
.form-success .big-check {
  width: 84px; height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 23px 0; margin-bottom: 0; background: transparent; border-radius: 0; }
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  padding: 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0; }
.faq-item .faq-body p { max-width: 800px; margin-top: 16px; font-size: 14px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item .faq-body a { color: #c7d2ff; text-decoration: underline; }

/* ---------- How it works timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.tl-step { position: relative; padding: 0 0 1.2rem 4.4rem; }
.tl-dot {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.tl-dot:hover, .tl-step.expanded .tl-dot { background: #dce2ff; color: #141726; border-color: transparent; }
.tl-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
}
.tl-card h3 { margin-bottom: 0.4rem; font-size: 20px; }
.tl-card p { margin: 0; font-size: 14px; }
.tl-more { display: none; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tl-step.expanded .tl-more { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #303f8755, transparent 65%);
  border: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 34rem; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 45px 6%;
  margin-top: 0;
  background: transparent;
}
.site-footer .container { width: 100%; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 25px; margin-bottom: 25px; }
.footer-grid h4 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #b1bacd; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { font-size: 18px; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 12px; max-width: 22rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 11px;
  color: #99a3bb;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 2.2rem; font-size: clamp(28px, 3vw, 40px); }
.legal ul { color: var(--muted); }
.legal li { margin-bottom: 0.5rem; font-size: 14px; }
.legal p { font-size: 14px; color: var(--text); }
.legal a { color: #c7d2ff; text-decoration: underline; }
.updated { font-size: 11px; color: #99a3bb; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 6rem 6%; }
.error-page .code {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.065em;
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 1;
  color: var(--accent);
}

/* ---------- Text link ---------- */
.text-link {
  display: inline-block;
  border-bottom: 1px solid #747d9a;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

table code, .code { font-family: ui-monospace, monospace; font-size: 0.9em; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; max-width: 560px; margin-inline: auto; width: 100%; }
  .lab-controls { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(9, 11, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 5% 1.5rem;
    gap: 0.2rem;
  }
  .site-header { position: sticky; }
  .nav-menu.open a { padding: 0.85rem 0.6rem; font-size: 15px; }
  .nav-cta { margin: 0.8rem 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 65px 6%; }
  .hero { padding: 50px 6% 45px; }
  h1 { font-size: 52px; margin: 32px 0 25px; }
  h2 { font-size: 38px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .check-grid { grid-template-columns: 1fr; }
  .modal-features { grid-template-columns: 1fr; }
  .lab-options { grid-template-columns: 1fr 1fr; }
  .mini-modern .m-cards { grid-template-columns: 1fr; }
  .mini-modern .m-links, .mini-minimal .m-links, .mini-bold .m-links { display: none; }
  .footer-grid { flex-direction: column; }
  .faq-item summary { font-size: 15px; }
  .price-card .amount { font-size: 48px; }
  .zero-banner .zero { font-size: 60px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  #particles { display: none; }
}

/* ---------- "Your Business. Reimagined." ---------- */
.reimagined-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  align-items: end;
}
.reimagined-form .field { margin: 0; }
.reimagined-browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0c0f16;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}
.reimagined-browser.rebuilding {
  animation: reimagined-rebuild 0.9s ease;
}
@keyframes reimagined-rebuild {
  0% { transform: perspective(1200px) rotateX(0) rotateY(0) scale(1); opacity: 1; }
  35% { transform: perspective(1200px) rotateX(6deg) rotateY(-8deg) scale(0.94); opacity: 0.55; }
  70% { transform: perspective(1200px) rotateX(-2deg) rotateY(3deg) scale(0.98); opacity: 0.85; }
  100% { transform: perspective(1200px) rotateX(0) rotateY(0) scale(1); opacity: 1; }
}
.reimagined-browser-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #10141d;
}
.reimagined-browser-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #2a3040;
}
.reimagined-browser-bar span:first-child { background: #a1adff55; }
.reimagined-previews {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px;
  align-items: start;
}
.reimagined-frame-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.reimagined-frame-label strong { color: var(--accent); }
.reimagined-viewport {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.reimagined-viewport .mini { border-radius: 0; }
.reimagined-phone-frame {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 10px;
  background: #10141d;
}
.reimagined-viewport-phone {
  border-radius: 20px;
  max-height: 560px;
  overflow-y: auto;
}
.reimagined-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.reimagined-styles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 900px) {
  .reimagined-form { grid-template-columns: 1fr; }
  .reimagined-previews { grid-template-columns: 1fr; padding: 16px; }
  .reimagined-desktop { display: none; }
  .reimagined-styles {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .reimagined-styles button { flex-shrink: 0; }
}
