/* ===========================================================
   Escape Velocity AI — Link-in-Bio styles
   Palette matches agency-landing-page/styles.css exactly.
   Mobile-first. All three pages (index, coming-soon, portfolio)
   use this single file.
   =========================================================== */

/* 1. CSS VARIABLES ----------------------------------------- */
:root {
  --orange:       #ff6b35;
  --orange-dark:  #e85c28;
  --blue-glow:    #4d8eff;
  --white:        #ffffff;

  --bg:           #080d1a;
  --bg-surface:   #0d1525;
  --bg-surface-2: #121e36;
  --navy:         #1a2840;
  --navy-dark:    #060c18;

  --text:         rgba(255,255,255,0.87);
  --text-muted:   rgba(255,255,255,0.52);
  --text-subtle:  rgba(255,255,255,0.50);

  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(77,142,255,0.30);

  --radius-sm:    6px;
  --radius-md:    12px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --transition:   0.2s ease;
}

/* 2. RESET & BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* 3. PAGE WRAPPER ------------------------------------------ */
.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* 4. HEADER ------------------------------------------------- */
.site-header {
  padding: 24px 0 8px;
  text-align: center;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.site-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* 5. HERO --------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 28px;
  gap: 14px;
}

.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy);
  background: var(--bg-surface-2);
}

.hero-intro {
  font-size: 0.9375rem;
  color: var(--text);
  text-align: center;
  max-width: 360px;
  line-height: 1.6;
}

/* 6. CHANNEL BLOCK ----------------------------------------- */
.channel-block {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 20px 16px;
}

.section-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

/* Channel link buttons */
.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  background: var(--navy-dark);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  margin-bottom: 10px;
}

.link-btn:last-child { margin-bottom: 0; }

.link-btn:hover {
  background: rgba(255,107,53,0.08);
  border-color: var(--orange);
}

.link-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.link-btn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.link-btn-label { flex: 1; }

.channel-inner-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

/* 7. SECTION DIVIDER --------------------------------------- */
.section-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
}

.section-divider hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--navy);
}

.divider-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-style: italic;
}

/* 8. AGENCY BLOCK ------------------------------------------ */
.agency-block {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  margin-bottom: 24px;
}

.agency-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.agency-subhead {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Agency cards grid: 1-col on mobile, 2-col on >=600px */
.agency-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .agency-cards { grid-template-columns: 1fr 1fr; }
}

.agency-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.agency-card:hover {
  border-color: var(--blue-glow);
  background: rgba(77,142,255,0.06);
}

.agency-card:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 2px;
}

.agency-card--primary {
  background: var(--orange);
  border-color: var(--orange);
}

.agency-card--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.agency-card-icon {
  color: var(--orange);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.agency-card--primary .agency-card-icon { color: var(--white); }

.agency-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.agency-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.agency-card--primary .agency-card-desc { color: rgba(255,255,255,0.75); }

/* 9. AFFILIATES -------------------------------------------- */
details.affiliates {
  margin-bottom: 24px;
}

details.affiliates summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
  user-select: none;
}

details.affiliates summary::-webkit-details-marker { display: none; }

details.affiliates summary:hover { color: var(--text); }

.affiliate-content {
  padding: 12px 0 4px;
}

.affiliate-disclosure {
  font-size: 0.6875rem;
  color: var(--text-subtle);
  margin-bottom: 10px;
}

.affiliate-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.affiliate-links a {
  font-size: 0.875rem;
  color: var(--blue-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.affiliate-links a:hover { color: var(--white); }

.affiliate-links a:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 10. FOOTER ----------------------------------------------- */
.site-footer {
  text-align: center;
  padding-top: 8px;
}

.btn-contact {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.4;
}

.btn-contact:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-contact:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* 11. SHARED UTILITY --------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link:hover { color: var(--orange); }

/* 12. COMING-SOON PAGE ------------------------------------- */
.coming-soon-page .page-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 48px;
}

.coming-soon-content {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.coming-soon-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.coming-soon-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.email-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
}

.email-input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}

.email-input::placeholder { color: var(--text-subtle); }

.btn-primary {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  background: var(--orange);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-primary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 20px;
}

/* 13. PORTFOLIO PAGE --------------------------------------- */
.portfolio-page {
  padding-top: 32px;
}

.portfolio-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.portfolio-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.portfolio-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.portfolio-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px;
}

.portfolio-card-header { margin-bottom: 12px; }

.portfolio-industry {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.portfolio-client {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.portfolio-location {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.portfolio-card-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.portfolio-card-body p + p { margin-top: 6px; }

.portfolio-stat {
  font-weight: 600;
  color: var(--text);
}

.portfolio-card-link {
  font-size: 0.875rem;
  color: var(--blue-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portfolio-card-link:hover { color: var(--white); }

.portfolio-cta {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.portfolio-cta p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.portfolio-cta .btn-primary {
  display: inline-block;
  width: auto;
  min-width: 220px;
  text-decoration: none;
}
