/* ============================================================
   Table Eight — dark glassmorphism theme
   Visual language matched to the Freepik Spaces reference:
   black bg, film grain, gold ambient glows, glass cards,
   gradient pill buttons, animated gradient border, reveal-on-scroll.
   ============================================================ */
:root {
  /* amber / yellow accent (from the reference) */
  --accent-from:   #f59e0b;
  --accent-to:     #facc15;
  --accent-bright: #fde047;
  --accent-border: #fbbf24;
  --glow-a:        #92400e;
  --glow-b:        #a16207;
  --hover-glow:    rgba(250,204,21,0.5);

  --bg:      #000000;
  --text:    #ffffff;
  --muted:   #9ca3af;
  --muted-2: #d1d5db;
  --line:    rgba(255,255,255,.10);
  --glass-bg:rgba(255,255,255,.03);

  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --maxw: 80rem;
  --gap: 1.5rem;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  line-height: 1.5; min-height: 100vh; position: relative; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---- film grain ---- */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  opacity: .05; pointer-events: none; z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
/* ---- ambient glows ---- */
.glow { position: fixed; width: 40%; height: 40%; border-radius: 9999px; filter: blur(120px); pointer-events: none; z-index: 0; }
.glow-tl { top: -10%; left: -10%; background: color-mix(in oklab, var(--glow-a) 20%, transparent); }
.glow-br { bottom: -10%; right: -10%; background: color-mix(in oklab, var(--glow-b) 20%, transparent); }

.glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: var(--glass-bg); border: 1px solid var(--line); }

/* ---- header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1rem; }
.logo { height: 26px; width: auto; }
.logo img { height: 100%; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.6rem; font-size: .875rem; color: var(--muted); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: #fff; }
.menu-btn { display: inline-flex; color: var(--muted); padding: .25rem; background: none; cursor: pointer; transition: color .15s; }
.menu-btn:hover { color: #fff; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 1.25rem var(--gap); flex-direction: column; gap: 1.1rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted-2); transition: color .15s; }
.mobile-menu a:hover { color: #fff; }

main { position: relative; z-index: 10; }

/* ---- eyebrow / section heads ---- */
.eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-to); font-weight: 600; margin-bottom: .75rem; }
h1, h2, h3 { letter-spacing: -.025em; color: #fff; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ---- hero ---- */
.hero { padding: 9rem 1.5rem 4rem; max-width: 64rem; margin: 0 auto; text-align: center; }
.animated-gradient-border {
  background: linear-gradient(270deg, var(--accent-from), var(--accent-bright), var(--accent-to), #eab308, var(--accent-from)) 0 0 / 300% 300%;
  border-radius: 9999px; padding: 1px; display: inline-block; margin-bottom: 1.5rem; animation: gradient-spin 3s infinite;
}
@keyframes gradient-spin { 0%{background-position:0%} 50%{background-position:100%} 100%{background-position:0%} }
.badge { background: #000; border-radius: 9999px; padding: .375rem 1rem; font-size: .875rem; color: var(--muted-2); }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.05; }
.hero p { font-size: 1rem; color: var(--muted); margin: 0 auto 2.5rem; max-width: 42rem; }

/* ---- buttons ---- */
.btn { display: inline-block; padding: .75rem 2rem; border-radius: 9999px; background: #fff; color: #000; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #e5e7eb; transform: translateY(-1px); }
.btn-primary {
  display: inline-block; padding: .65rem 1.75rem; border-radius: 9999px;
  background: linear-gradient(to right, var(--accent-from), var(--accent-to));
  color: #000; font-size: .9rem; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 0 18px var(--hover-glow); transform: translateY(-1px); }
.btn-ghost { display: inline-block; padding: .65rem 1.75rem; border-radius: 9999px; background: rgba(255,255,255,.1); color: #fff; font-size: .9rem; font-weight: 500; transition: background .15s; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ---- sections ---- */
section { position: relative; }
.block { padding: 4rem 0; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---- services / cards grid ---- */
.services { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 1.25rem; }
.card { border-radius: 1rem; padding: 1.75rem; height: 100%; display: flex; flex-direction: column; gap: .6rem; transition: border-color .3s, transform .3s; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--accent-border) 50%, transparent); }
.card h3 { font-size: 1.25rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.6; flex-grow: 1; }
.card a.more { color: var(--accent-to); font-weight: 600; font-size: .85rem; margin-top: .4rem; }

/* ---- banner ---- */
.banner { text-align: center; }
.banner h2 { font-size: 2rem; font-weight: 700; max-width: 24ch; margin: 0 auto 1.8rem; line-height: 1.1; }

/* ---- testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 1.25rem; }
.quote { border-radius: 1rem; padding: 1.75rem; }
.quote .mark { font-size: 2.5rem; line-height: 1; color: var(--accent-to); }
.quote p { color: var(--muted-2); margin: .3rem 0 1rem; }
.quote .who { font-weight: 600; font-size: .9rem; }
.quote .who span { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }

/* ---- lead form ---- */
.lead { display: grid; gap: .9rem; max-width: 480px; }
.lead label { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted-2); }
.lead input, .lead textarea, .lead select {
  width: 100%; padding: .85rem 1rem; border-radius: .75rem; font: inherit; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: border-color .15s;
}
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: color-mix(in oklab, var(--accent-border) 60%, transparent); }
.lead select option { color: #000; }
.lead .row { display: flex; gap: .9rem; }
.lead .row > * { flex: 1; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-status { font-size: .92rem; padding: .8rem 1rem; border-radius: .75rem; display: none; }
.form-status.ok  { display: block; background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.form-status.err { display: block; background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

/* ---- footer ---- */
.site-footer { padding: 4rem 0 3rem; position: relative; z-index: 10; }
.site-footer h2 { font-size: 1.8rem; font-weight: 700; max-width: 18ch; line-height: 1.1; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom .social { display: flex; gap: 1.2rem; }
.footer-bottom a:hover { color: #fff; }

/* ---- reveal-on-scroll ---- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fade-up .6s ease forwards; }
.hero .animated-gradient-border { animation: gradient-spin 3s infinite, fade-up .5s ease both; }
.hero h1 { animation: fade-up .8s ease both; }
.hero p  { animation: fade-up .8s .2s ease both; }
.hero .btn { animation: fade-up .8s .35s ease both; }

/* ---- responsive ---- */
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
  .services { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
  .quotes { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
  .hero h1 { font-size: 4.5rem; line-height: 1; }
  .hero p { font-size: 1.125rem; }
  .section-title, .banner h2 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quotes { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
