:root {
  --bg: #03070d;
  --panel: rgba(7, 16, 26, 0.78);
  --panel-solid: #09111d;
  --text: #eef8ff;
  --muted: #a9bdc8;
  --cyan: #54e7ff;
  --cyan-soft: rgba(84, 231, 255, 0.22);
  --blue: #7bbcff;
  --line: rgba(174, 232, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(circle at top right, rgba(26, 109, 152, 0.25), transparent 35%), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.demo-ribbon {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.55rem 1rem;
  text-align: center;
  background: linear-gradient(90deg, rgba(3, 7, 13, 0.92), rgba(19, 69, 91, 0.92), rgba(3, 7, 13, 0.92));
  color: #d6f8ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(3, 7, 13, 0.64);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.site-header.scrolled { background: rgba(3, 7, 13, 0.9); padding-block: 0.55rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(84, 231, 255, 0.25)); }
.brand span { font-family: var(--serif); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: clamp(0.95rem, 2vw, 1.18rem); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: clamp(0.7rem, 1.3vw, 1.2rem); }
.nav-links a, .login-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.login-link { border: 1px solid var(--line); background: rgba(84, 231, 255, 0.06); color: var(--text); border-radius: 999px; padding: 0.55rem 0.9rem; cursor: pointer; }
.nav-links a:hover, .login-link:hover { color: var(--cyan); text-shadow: 0 0 18px rgba(84, 231, 255, 0.4); }

.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 0.45rem 0.7rem; font-size: 1.2rem; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 9rem 1rem 5rem;
  background: url('assets/images/gla-background.png') center/cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 15%, rgba(84, 231, 255, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(3, 7, 13, 0.85), rgba(3, 7, 13, 0.42), rgba(3, 7, 13, 0.6));
}
.hero-content { width: min(920px, 94vw); text-align: center; margin-top: 2rem; }
.hero-logo { width: min(580px, 86vw); margin: 0 auto 1.3rem; filter: drop-shadow(0 0 30px rgba(84, 231, 255, 0.28)); }
.eyebrow {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-size: clamp(0.72rem, 1.5vw, 0.88rem);
}
h1, h2, h3 { font-family: var(--serif); margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); text-shadow: 0 0 30px rgba(0,0,0,.7); }
h2 { font-size: clamp(2rem, 4.5vw, 4.1rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.7; }
.hero-copy { width: min(720px, 95%); margin: 1.2rem auto 0; font-size: clamp(1rem, 2vw, 1.22rem); color: #d7eaf2; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, rgba(84, 231, 255, 0.95), rgba(47, 129, 207, 0.95)); color: #021018; box-shadow: 0 0 30px rgba(84, 231, 255, 0.22); border-color: rgba(189, 250, 255, 0.55); }
.btn.ghost { background: rgba(3, 7, 13, 0.36); color: var(--text); }
.btn.full { width: 100%; }

.scroll-cue { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 2rem)); text-align: center; }
.grid-two { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.align-start { align-items: start; }
.copy-block p { font-size: 1.05rem; }
.intro-panel { background: linear-gradient(180deg, var(--bg), #07111c); }
.stat-card, .idea-form, .contact-card, .blog-card {
  background: linear-gradient(145deg, rgba(9, 17, 29, 0.92), rgba(10, 34, 47, 0.54));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.stat-card { padding: clamp(1.5rem, 4vw, 3rem); }
.stat-number { display: block; font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 0.9; color: var(--cyan); text-shadow: 0 0 28px rgba(84, 231, 255, 0.25); }
.stat-label { display: block; font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.16em; color: var(--text); }

.section-heading { width: min(780px, 100%); margin: 0 auto 2.5rem; text-align: center; }
.section-heading p:last-child { font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.case-card {
  overflow: hidden;
  background: rgba(8, 16, 28, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.case-card img { width: 100%; height: 235px; object-fit: cover; border-bottom: 1px solid var(--line); filter: saturate(0.95) contrast(1.05); }
.card-body { padding: 1.3rem; }
.location { margin: 0 0 0.45rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 800; }
.card-body p:not(.location) { min-height: 170px; }
.card-body a, .case-file-btn { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.case-file-btn { padding: 0; border: 0; background: transparent; cursor: pointer; }
.case-file-btn:hover { text-shadow: 0 0 18px rgba(84, 231, 255, 0.45); }

.street-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('assets/images/gla-banner-background.png') center/cover no-repeat fixed;
  isolation: isolate;
}
.street-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,7,13,.88), rgba(3,7,13,.45), rgba(3,7,13,.82)); z-index: -1; }
.street-content { width: min(640px, calc(100% - 2rem)); margin-left: max(1rem, calc((100vw - 1180px)/2)); }
.street-content h2 { margin-bottom: 1rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.blog-card { padding: 1.4rem; }
.blog-card span { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.blog-card h3 { margin: .8rem 0; }

.split-section { background: linear-gradient(180deg, #07111c, #03070d); }
.idea-form { padding: 1.2rem; }
.idea-form label, .login-form label { display: grid; gap: 0.45rem; margin-bottom: 0.85rem; color: #d9edf5; font-weight: 700; font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(174, 232, 255, 0.18);
  border-radius: 14px;
  background: rgba(2, 8, 14, 0.78);
  color: var(--text);
  padding: 0.85rem 0.9rem;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(84, 231, 255, 0.65); box-shadow: 0 0 0 4px rgba(84, 231, 255, 0.08); }
.form-note { margin: 0.8rem 0 0; color: #8fa5b0; font-size: 0.85rem; text-align: center; }
.check-list { padding: 0; list-style: none; display: grid; gap: .7rem; margin-top: 1.3rem; }
.check-list li { color: #d7eaf2; padding-left: 1.6rem; position: relative; }
.check-list li::before { content: "✦"; color: var(--cyan); position: absolute; left: 0; }

.about { background: radial-gradient(circle at center, rgba(84,231,255,.09), transparent 50%); }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); }
.contact-card p { max-width: 740px; }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); background: #02050a; }
.footer-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; align-items: center; }
.site-footer img { width: 160px; filter: drop-shadow(0 0 24px rgba(84, 231, 255, 0.2)); }
.site-footer h3 { font-size: 1rem; margin-bottom: .5rem; }
.site-footer p { margin-bottom: 0; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.76); backdrop-filter: blur(12px); }
.modal-card {
  position: relative;
  width: min(430px, 100%);
  background: linear-gradient(145deg, rgba(10, 21, 35, 0.98), rgba(4, 12, 20, 0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-card img { width: 130px; margin: 0 auto .4rem; }
.modal-card h2 { font-size: 1.7rem; }
.modal-close { position: absolute; top: .75rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 1.4rem; cursor: pointer; }
.login-form { margin-top: 1rem; text-align: left; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 120%);
  z-index: 220;
  background: rgba(5, 16, 25, 0.95);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.toast.show { transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(3, 7, 13, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .login-link { padding: .7rem; text-align: left; }
  .grid-two, .cards, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-body p:not(.location) { min-height: auto; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .demo-ribbon { font-size: 0.62rem; }
  .site-header { top: 1.85rem; padding-inline: .8rem; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: .78rem; letter-spacing: .06em; }
  .hero { padding-top: 8rem; }
  .hero-logo { width: min(330px, 88vw); }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .street-banner { min-height: 460px; background-attachment: scroll; }
  .case-card img { height: 210px; }
}


.case-modal { z-index: 240; }
.case-file-paper {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  max-height: 88vh;
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #1f1a13;
  background:
    linear-gradient(90deg, rgba(90,60,30,.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 120px),
    #e5d2ad;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0,0,0,.75), inset 0 0 80px rgba(80, 43, 15, .22);
  border: 1px solid rgba(80,43,15,.34);
  font-family: 'Courier New', Courier, monospace;
  transform: rotate(-0.4deg);
}
.case-file-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 12%, rgba(90, 60, 25, .18), transparent 17%),
    radial-gradient(circle at 84% 76%, rgba(70, 40, 20, .14), transparent 20%),
    linear-gradient(90deg, rgba(0,0,0,.05), transparent 12%, transparent 88%, rgba(0,0,0,.05));
  mix-blend-mode: multiply;
}
.paper-close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(31,26,19,.22);
  background: rgba(255,255,255,.24);
  color: #241a10;
  font-size: 1.5rem;
  cursor: pointer;
}
.file-stamp {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .55rem;
  border: 2px solid rgba(104,22,22,.62);
  color: rgba(104,22,22,.82);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  transform: rotate(-2deg);
}
.case-file-paper h2 {
  color: #231911;
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  text-shadow: none;
}
.case-location {
  margin: .35rem 0 1.25rem;
  color: #4b3320;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.typed-lines {
  display: grid;
  gap: 1rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}
.typed-lines p {
  margin: 0;
  color: #272015;
  line-height: 1.75;
}
.paper-note {
  margin-top: 1.5rem;
  color: #5a432a;
  font-size: .9rem;
  border-top: 1px dashed rgba(67, 45, 25, .45);
  padding-top: 1rem;
}

@media (max-width: 640px) {
  .case-file-paper { transform: none; }
}
