:root {
  --bg: #08090d;
  --bg-soft: #0f1118;
  --panel: rgba(15, 17, 24, 0.82);
  --panel-2: rgba(20, 23, 34, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #9aa4bb;
  --gold: #ffb31a;
  --gold-2: #ffcf70;
  --cyan: #5ce5ff;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(92, 229, 255, 0.08), transparent 20%),
    radial-gradient(circle at top left, rgba(255, 179, 26, 0.12), transparent 18%),
    linear-gradient(180deg, #07080c 0%, #0b0d13 45%, #07080c 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 20px 0 60px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: rgba(8, 9, 13, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-eyebrow,
.eyebrow,
.tag,
.product-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}

.main-nav,
.nav-actions,
.hero-cta-row,
.hero-metrics,
.product-footer,
.auth-tabs,
.two-up,
.profile-head,
.footer,
.footer-links,
.signal-strip,
.mini-cards {
  display: flex;
  gap: 12px;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.solid-btn,
.ghost-btn,
.tab-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  transition: 0.2s ease;
}

.solid-btn {
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  color: #111;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 179, 26, 0.22);
}

.solid-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--text);
}

.ghost-btn:hover,
.tab-btn:hover,
.tab-btn.active {
  border-color: rgba(255, 179, 26, 0.5);
  background: rgba(255, 179, 26, 0.08);
}

.small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.wide {
  width: 100%;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 179, 26, 0.8), rgba(92, 229, 255, 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.section-grid,
.product-grid,
.feature-grid,
.account-layout,
.qstack-layout {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 78vh;
}

.hero-copy,
.hero-stack,
.auth-panel,
.profile-panel,
.qstack-copy,
.qstack-brand-card,
.product-card,
.feature-card {
  padding: 28px;
}

.hero-copy h1,
.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 10px 0 16px;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 6vw, 6.1rem);
}

.hero-copy p,
.section-head p,
.product-body p,
.feature-card p,
.panel-note,
.qstack-copy p,
.floating-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-metrics {
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li,
.mini-card {
  min-width: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics strong,
.mini-card strong {
  display: block;
  font-size: 1.2rem;
}

.hero-metrics span,
.mini-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stack {
  position: relative;
  min-height: 620px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.hero-image-card {
  position: absolute;
  inset: 24px 24px 140px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(255, 179, 26, 0.12), transparent 46%), #0b0d12;
  overflow: hidden;
}

.hero-image-card img {
  width: min(100%, 520px);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55));
}

.floating-card {
  position: absolute;
  max-width: 300px;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.floating-card.accent {
  left: 18px;
  bottom: 24px;
}

.floating-card.secondary {
  right: 18px;
  top: 30px;
}

.signal-strip {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 16px 0 42px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.section-block {
  padding: 42px 0;
}

.alt-bg {
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.section-head p {
  max-width: 520px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-media {
  min-height: 260px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 179, 26, 0.08), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media.dark {
  background: linear-gradient(180deg, rgba(92, 229, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.product-media.real-photo {
  overflow: hidden;
}

.product-media.real-photo img {
  border-radius: 18px;
}

.product-body h3,
.qstack-copy h3,
.profile-head h3 {
  margin: 8px 0 10px;
  font-size: 1.5rem;
}

.product-body ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.product-footer {
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-footer strong {
  font-size: 1.45rem;
}

.qstack-layout {
  grid-template-columns: 1fr 0.9fr;
  align-items: stretch;
}

.qstack-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(92, 229, 255, 0.12), transparent 42%), #0c0d13;
}

.qstack-brand-card img {
  width: min(100%, 500px);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card h3 {
  margin-top: 0;
}

.account-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.auth-panel,
.profile-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.auth-tabs {
  margin-bottom: 18px;
}

.auth-form,
.profile-form {
  display: none;
  gap: 14px;
}

.auth-form.active,
.profile-form {
  display: grid;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: #d9deec;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

input:focus {
  outline: 1px solid rgba(255, 179, 26, 0.65);
  border-color: rgba(255, 179, 26, 0.65);
}

.profile-head {
  justify-content: space-between;
  align-items: center;
}

.footer {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0 8px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 24px), 760px);
  margin: 8vh auto 0;
  padding: 28px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1.5rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(10, 11, 16, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .product-grid,
  .qstack-layout,
  .feature-grid,
  .account-layout {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid article:last-child,
  .feature-grid article:last-child {
    grid-column: span 2;
  }

  .topbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .hero,
  .product-grid,
  .qstack-layout,
  .feature-grid,
  .account-layout,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .product-grid article:last-child,
  .feature-grid article:last-child {
    grid-column: span 1;
  }

  .main-nav {
    display: none;
  }

  .hero-stack {
    min-height: 540px;
  }

  .footer,
  .footer-links,
  .nav-actions,
  .hero-cta-row,
  .product-footer,
  .two-up,
  .profile-head {
    flex-direction: column;
    align-items: stretch;
  }

  .floating-card.secondary {
    right: 14px;
    left: 14px;
    top: 18px;
    max-width: unset;
  }

  .floating-card.accent {
    left: 14px;
    right: 14px;
    bottom: 18px;
    max-width: unset;
  }

  .hero-image-card {
    inset: 92px 14px 160px 14px;
  }
}


.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-hero {
  padding: 28px;
  margin-bottom: 24px;
}

.compact-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 10px 0 14px;
}

.compact-hero p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 900px;
}

.teaser-grid,
.projects-layout {
  display: grid;
  gap: 24px;
}

.teaser-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teaser-card {
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.teaser-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 26, 0.45);
}

.account-page-section,
.projects-section {
  padding-top: 0;
}

.section-head.tight h2 {
  margin-bottom: 8px;
}

.project-form,
.profile-form,
.auth-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

textarea,
select,
input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 179, 26, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 179, 26, 0.12);
}

.projects-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.project-composer,
.project-feed-panel {
  padding: 28px;
}

.project-image-preview {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.project-image-preview img,
.project-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hidden {
  display: none;
}

.project-feed {
  display: grid;
  gap: 20px;
}

.project-card {
  overflow: hidden;
}

.project-card-body {
  padding: 24px;
}

.project-meta-row,
.project-bottom-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.project-date,
.project-author,
.empty-state p {
  color: var(--muted);
}

.project-card h3,
.empty-state h3,
.teaser-card h3 {
  margin: 12px 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.project-summary,
.project-writeup,
.teaser-card p {
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  padding: 28px;
}

@media (max-width: 980px) {
  .projects-layout,
  .teaser-grid,
  .hero,
  .qstack-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .main-nav,
  .nav-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .topbar,
  .hero-copy,
  .hero-stack,
  .product-card,
  .qstack-copy,
  .qstack-brand-card,
  .feature-card,
  .auth-panel,
  .profile-panel,
  .project-composer,
  .project-feed-panel,
  .page-hero,
  .teaser-card {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

auth-divider, .google-auth-wrap {}
.auth-divider {
  position: relative;
  margin: 14px 0 16px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: rgba(15, 17, 24, 0.95);
}

.google-auth-wrap {
  display: grid;
  gap: 10px;
}

.login-head {
  align-items: start;
}

#googleLoginButton > div {
  width: 100% !important;
}

.project-auth-gate {
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 179, 26, 0.4);
  background: rgba(255, 255, 255, 0.025);
}

.project-auth-gate h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.project-auth-gate p,
#projectComposerStatus {
  color: var(--muted);
  line-height: 1.7;
}

.project-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

select:focus,
textarea:focus {
  outline: 1px solid rgba(255, 179, 26, 0.65);
  border-color: rgba(255, 179, 26, 0.65);
}

.hidden {
  display: none !important;
}


select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

select:focus,
textarea:focus {
  outline: 1px solid rgba(255, 179, 26, 0.65);
  border-color: rgba(255, 179, 26, 0.65);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.quote-form,
.quote-results {
  padding: 28px;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.file-drop-zone {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgba(255, 179, 26, 0.45);
  border-radius: 20px;
  background: rgba(255, 179, 26, 0.04);
}

.file-drop-zone input[type="file"] {
  margin-top: 12px;
  margin-bottom: 10px;
  background: transparent;
  border: 1px dashed var(--line);
}

.label-title {
  font-weight: 700;
}

.file-drop-copy {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.quote-action-row,
.service-banner,
.service-banner-actions,
.quote-chip-row,
.quote-breakdown div {
  display: flex;
  gap: 14px;
}

.quote-action-row {
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.quote-results h3,
.service-banner h3 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.quote-breakdown {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.quote-breakdown div {
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.quote-breakdown div:last-child {
  border-color: rgba(255, 179, 26, 0.45);
  background: rgba(255, 179, 26, 0.06);
}

.quote-chip-row {
  flex-wrap: wrap;
}

.service-banner {
  justify-content: space-between;
  align-items: center;
  padding: 28px;
}

.service-banner p {
  max-width: 720px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .service-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
