/* Louis Liberty LLC — site styles
   Plain CSS, no build step. Breakpoints: 640px (sm), 768px (md), 1024px (lg). */

:root {
  --gold: #D4AF37;
  --gold-light: #F4CF57;
  --gold-dark: #B48F17;
  --gold-rgb: 212, 175, 55;
  --bg: #000014;
  --fg: #EEEADF;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-400: #f87171;
  --radius: 0.5rem;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --gold-gradient: linear-gradient(to right, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--fg);
  background-color: var(--bg);
  background-image: radial-gradient(circle at center, #0a0a2e 0%, #000000 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(var(--gold-rgb), 0.3); color: var(--bg); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb), 0.2); border-radius: 9999px; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-xs { width: 1rem; height: 1rem; }

.text-gold {
  background-image: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center { text-align: center; }

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

main, .footer { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.section { padding: 5rem 1rem; }
.container-3xl { max-width: 48rem; margin: 0 auto; }
.container-4xl { max-width: 56rem; margin: 0 auto; }
.container-6xl { max-width: 72rem; margin: 0 auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-portfolio, .grid-solutions, .grid-steps, .grid-problems { grid-template-columns: 1fr; }
.grid-problems { gap: 1rem; }
.grid-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.card:hover { border-color: rgba(var(--gold-rgb), 0.4); }

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  color: var(--gold);
  transition: background-color 0.3s ease;
}
.icon-badge .icon { width: 1.75rem; height: 1.75rem; }
.icon-badge-lg { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; }
.icon-badge-lg .icon { width: 2rem; height: 2rem; }

/* ---------- Section headings ---------- */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 1rem;
}
.section-heading p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--gray-400);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 300;
}
.heading-rule {
  width: 6rem;
  height: 2px;
  margin: 1.5rem auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 2rem;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.btn-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-label[hidden] { display: none; }

.btn-solid {
  color: #000;
  background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-dark));
  border: 1px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.3);
}
.btn-solid:hover { box-shadow: 0 0 35px rgba(var(--gold-rgb), 0.5); }

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(var(--gold-rgb), 0.1);
  box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.2);
}

.btn-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateX(-100%);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.btn:hover .btn-shine { animation: shimmer 1.5s infinite; }
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.btn-lg { font-size: 1.125rem; line-height: 1.75rem; padding: 1.25rem 2.5rem; }
.btn-xl { font-size: 1.125rem; line-height: 1.75rem; padding: 1.5rem 3rem; }
.btn-block { width: 100%; margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.logo-wrap { position: relative; }
.logo-glow {
  position: absolute;
  inset: -0.25rem;
  border-radius: 9999px;
  background: var(--gold);
  opacity: 0.3;
  filter: blur(16px);
  transition: opacity 0.7s ease;
}
.logo-wrap:hover .logo-glow { opacity: 0.6; }
.logo-circle {
  position: relative;
  width: 8rem;
  height: 8rem;
  padding: 0.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(var(--gold-rgb), 0.5);
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }

.eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.25;
  color: #fff;
}

.hero-sub {
  max-width: 42rem;
  color: var(--gray-300);
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

/* ---------- Portfolio ---------- */
.portfolio-card { overflow: hidden; transition: border-color 0.5s ease; }
.portfolio-card:hover { border-color: rgba(var(--gold-rgb), 0.5); }
.portfolio-card h3 {
  padding: 1rem 1.25rem;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1.375;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.frame-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8), rgba(0, 0, 0, 0.9));
}
.frame-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
}
.frame-stage-laptop { padding: 1.5rem 1rem 0.5rem; }

.phone {
  width: 12rem;
  border-radius: 2rem;
  border: 3px solid var(--gray-500);
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.phone-top { height: 0.75rem; background: #000; display: flex; justify-content: center; align-items: flex-end; }
.phone-notch { width: 5rem; height: 1.25rem; background: #000; border-radius: 0 0 1rem 1rem; }
.phone-bottom { height: 0.75rem; background: #000; }
.phone-screen {
  height: 360px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.phone-screen img { width: 100%; height: 100%; transition: transform 0.7s ease; }
.img-zoomed { object-fit: cover; object-position: center; transform: scale(1.35); }
.portfolio-card:hover .img-zoomed { transform: scale(1.4); }
.img-cover-top { object-fit: cover; object-position: top; }
.img-contain { object-fit: contain; }
.portfolio-card:hover .img-cover-top,
.portfolio-card:hover .img-contain { transform: scale(1.05); }

.laptop { width: 100%; max-width: 280px; }
.laptop-screen {
  border: 3px solid var(--gray-500);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--gray-800);
  overflow: hidden;
}
.laptop-bar { height: 1rem; background: var(--gray-700); display: flex; align-items: center; gap: 0.25rem; padding: 0 0.5rem; }
.dot { display: block; width: 6px; height: 6px; border-radius: 9999px; }
.dot-r { background: rgba(248, 113, 113, 0.6); }
.dot-y { background: rgba(250, 204, 21, 0.6); }
.dot-g { background: rgba(74, 222, 128, 0.6); }
.laptop-screen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s ease;
}
.portfolio-card:hover .laptop-screen img { transform: scale(1.05); }
.laptop-base {
  height: 0.75rem;
  margin: 0 -4px;
  background: var(--gray-600);
  border: 3px solid var(--gray-500);
  border-top: 0;
  border-radius: 0 0 2px 2px;
}
.laptop-foot {
  height: 0.5rem;
  margin: 0 1rem;
  background: var(--gray-600);
  border: 2px solid var(--gray-500);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Problems ---------- */
.problem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
.problem p { color: var(--gray-200); font-size: 1.125rem; line-height: 1.75rem; }

.callout {
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: center;
  border-color: rgba(var(--gold-rgb), 0.3);
}
.callout p {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
}

/* ---------- Solutions ---------- */
.solution { padding: 1.5rem; text-align: center; }
.solution:hover .icon-badge { background: rgba(var(--gold-rgb), 0.2); }
.solution h3, .step h3 {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.solution p, .step p { color: var(--gray-300); font-size: 1rem; line-height: 1.625; }

/* ---------- Steps ---------- */
.step { position: relative; padding: 1.5rem; text-align: center; }
.step-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: rgba(var(--gold-rgb), 0.2);
  margin-bottom: 1rem;
}
.step-arrow { display: none; }

/* ---------- Industries ---------- */
.industry { padding: 1.25rem; text-align: center; }
.industry .icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.75rem; color: var(--gold); }
.industry p { color: var(--gray-200); font-size: 1rem; line-height: 1.5rem; font-weight: 500; }

/* ---------- CTA ---------- */
.cta-title {
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.cta-sub {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--gray-400);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* ---------- Contact ---------- */
.calendly-card { overflow: hidden; }
.calendly-embed { min-width: 0; height: 700px; }
.calendly-fallback { padding: 2rem; text-align: center; color: var(--gold); }
.calendly-fallback a { text-decoration: underline; }

.message-block { margin-top: 4rem; }
.message-intro { text-align: center; margin-bottom: 2rem; color: var(--gray-400); }
.form-card { padding: 1.5rem; }
.form-card:hover { border-color: rgba(var(--gold-rgb), 0.2); }

#contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gray-200);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.field input { height: 3rem; }
.field textarea { min-height: 120px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-600); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.25);
}
.field.has-error input, .field.has-error textarea { border-color: rgba(248, 113, 113, 0.6); }
.field-error { color: var(--red-400); font-size: 0.875rem; font-weight: 500; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(var(--gold-rgb), 0.1);
}
.footer p {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 100;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  margin-left: auto;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  background: rgba(10, 10, 30, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--fg);
  animation: toast-in 0.3s ease-out;
}
.toast.is-error { border-color: rgba(248, 113, 113, 0.7); background: rgba(60, 10, 10, 0.95); }
.toast-title { font-weight: 600; font-size: 0.875rem; }
.toast-body { font-size: 0.875rem; opacity: 0.9; margin-top: 0.25rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(1rem); } }

/* ---------- Reveal animations (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.js .is-visible .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover .btn-shine { animation: none; }
}

/* ---------- sm: 640px ---------- */
@media (min-width: 640px) {
  .section { padding: 7rem 1.5rem; }
  .hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .grid { gap: 2rem; }
  .grid-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .grid-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-industries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

  .section-heading { margin-bottom: 4rem; }
  .section-heading h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .section-heading p { font-size: 1.25rem; line-height: 1.75rem; }

  .logo-circle { width: 10rem; height: 10rem; padding: 0.625rem; }
  .eyebrow { font-size: 1rem; line-height: 1.5rem; }
  .hero-title { font-size: 3rem; }
  .hero-sub { font-size: 1.25rem; }
  .hero-buttons { flex-direction: row; width: auto; }
  .btn-lg, .btn-xl { font-size: 1.25rem; }

  .portfolio-card h3 { padding: 1rem 1.5rem; font-size: 1.5rem; }
  .phone { width: 14rem; }
  .laptop { max-width: 320px; }

  .problem { padding: 1.5rem; }
  .problem p { font-size: 1.25rem; }
  .callout { margin-top: 3rem; padding: 2rem; }
  .callout p { font-size: 1.875rem; line-height: 2.25rem; }

  .solution, .step { padding: 2rem; }
  .solution p, .step p { font-size: 1.125rem; }
  .step-number { font-size: 3.75rem; }

  .industry { padding: 1.5rem; }
  .industry p { font-size: 1.125rem; line-height: 1.75rem; }

  .cta-title { font-size: 2.25rem; }
  .cta-sub { font-size: 1.25rem; }

  .form-card { padding: 2rem; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- md: 768px ---------- */
@media (min-width: 768px) {
  .grid-portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .section-heading h2 { font-size: 3rem; line-height: 1; }
  .hero-title { font-size: 3.75rem; }
  .hero-sub { font-size: 1.5rem; }
  .callout p { font-size: 2.25rem; line-height: 2.5rem; }
  .cta-title { font-size: 3rem; }

  .step-arrow {
    display: block;
    position: absolute;
    right: -1rem;
    top: 50%;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    color: rgba(var(--gold-rgb), 0.3);
  }
}

/* ---------- lg: 1024px ---------- */
@media (min-width: 1024px) {
  .grid-portfolio, .grid-solutions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-title { font-size: 4.5rem; }
}
