:root {
  --bg: #050816;
  --panel: #071425;
  --panel-2: #0b1d33;
  --text: #f7fbff;
  --muted: rgba(235, 248, 255, 0.74);
  --line: rgba(146, 232, 255, 0.2);
  --accent: #27e6ff;
  --accent-2: #8f5cff;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 8, 24, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(39, 230, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(143, 92, 255, 0.14), transparent 26rem),
    var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { overflow-wrap: anywhere; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a,
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(247, 251, 255, 0.82);
  text-decoration: none;
  font-weight: 750;
}
.nav a:hover,
.nav a.is-active,
.mobile-nav a.is-active { background: rgba(39, 230, 255, 0.1); color: #ffffff; }
.nav-cta,
.button,
.card-link,
.contact-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
}
.nav-cta,
.button.primary,
.card-link {
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #bdf7ff);
}
.button.secondary,
.card-link.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-menu {
  display: none;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 850;
}
.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.98);
}
.mobile-nav.open { display: grid; gap: 4px; }

.hero,
.portal-hero,
.webdev-hero,
.contact-terminal-shell,
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 104px) 0;
}
.portal-hero,
.webdev-hero,
.contact-terminal-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.portal-copy,
.webdev-hero-copy,
.contact-terminal-info,
.contact-shell,
.no-template-section,
.portal-core,
.service-console,
.contact-terminal-form,
.demo-project-card,
.website-price-card,
.service-capability-grid article,
.flow-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)), rgba(7, 20, 38, 0.88);
  box-shadow: var(--shadow);
}
.portal-copy,
.webdev-hero-copy,
.contact-terminal-info,
.contact-shell { padding: clamp(24px, 4vw, 42px); }

.eyebrow,
.status {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid rgba(39,230,255,0.28);
  border-radius: 999px;
  color: #bdf7ff;
  background: rgba(39,230,255,0.08);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 { margin: 0 0 14px; line-height: 1.06; letter-spacing: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 18px; color: var(--muted); }

.hero-actions,
.section-action,
.demo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.portal-menu,
.portal-status-dock,
.portal-signal-grid,
.salescopilot-points,
.demo-project-grid,
.service-capability-grid,
.flow-grid,
.website-price-grid {
  display: grid;
  gap: 16px;
}
.portal-menu,
.demo-project-grid,
.website-price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.salescopilot-points,
.portal-status-dock,
.portal-signal-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.portal-tile,
.portal-status-dock span,
.portal-signal-grid article,
.salescopilot-points span,
.audience-cloud span {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: rgba(247,251,255,0.86);
  background: rgba(255,255,255,0.05);
}
.portal-tile { text-decoration: none; min-height: 132px; display: grid; align-content: start; }
.tile-orb { display: none; }
.tile-symbol { color: var(--accent); font-size: 1.1rem; }
.tile-meta { color: var(--muted); }

.section-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}
.demo-project-card,
.website-price-card,
.service-capability-grid article,
.flow-grid article {
  overflow: hidden;
  padding: 18px;
}
.demo-project-visual {
  min-height: 150px;
  display: grid;
  align-items: end;
  padding: 16px;
  margin: -18px -18px 18px;
}
.demo-project-visual span { font-weight: 950; }
.restaurant-card .demo-project-visual { background: linear-gradient(135deg, #3a1d12, #b5482e); }
.praxis-card .demo-project-visual { background: linear-gradient(135deg, #f7fcfd, #0d7f8f); color: #062f36; }
.estate-card .demo-project-visual { background: linear-gradient(135deg, #f7f3ea, #173f36); }
.auto-card .demo-project-visual { background: linear-gradient(135deg, #0d1119, #e0442e); }
.demo-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}
.demo-facts div {
  padding: 10px 12px;
  border: 1px solid rgba(146,232,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
}
.demo-facts dt { color: #9bedff; font-size: 0.72rem; font-weight: 950; text-transform: uppercase; }
.demo-facts dd { margin: 0; color: var(--muted); }

.no-template-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}
.no-template-proof,
.audience-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}
.no-template-proof span {
  flex: 1 1 120px;
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(39,230,255,0.08);
  font-weight: 900;
}

.website-price { display: block; margin: 8px 0 12px; font-size: 2rem; font-weight: 950; }
.website-price small { font-size: 1rem; color: var(--muted); }
.website-price-card ul { padding-left: 1.1rem; color: var(--muted); }
.website-price-card.recommended { border-color: rgba(39,230,255,0.5); }
.website-package-limit,
.website-support-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
}
.website-support-note { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}
.contact-form label { display: grid; gap: 6px; font-weight: 800; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.full,
.contact-form .checkbox,
.contact-form button,
.form-terminal-header,
.form-feedback { grid-column: 1 / -1; }
.checkbox { display: flex !important; grid-template-columns: auto 1fr !important; align-items: start; }
.checkbox input { width: auto; margin-top: 6px; }
.hidden { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.form-feedback.success { color: #9fffc4; }
.form-feedback.error { color: #ffb4b4; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.portal-help-overlay[hidden] { display: none; }
.portal-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.62);
}
.portal-help-panel {
  width: min(720px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.portal-help-close {
  float: right;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.portal-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.portal-help-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }

.reveal,
.reveal-on-scroll,
.reveal-up,
.reveal-scale,
.holo-enter { opacity: 1 !important; transform: none !important; }

@media (max-width: 1050px) {
  .nav,
  .nav-cta { display: none; }
  .mobile-menu { display: inline-flex; }
  .portal-hero,
  .webdev-hero,
  .contact-terminal-shell,
  .no-template-section { grid-template-columns: 1fr; }
  .portal-menu,
  .demo-project-grid,
  .website-price-grid,
  .service-capability-grid,
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { padding-inline: 12px; }
  .brand span { max-width: 160px; }
  .hero,
  .portal-hero,
  .webdev-hero,
  .contact-terminal-shell,
  .section,
  .website-support-note { width: min(100% - 28px, 1180px); }
  h1 { font-size: 2.32rem; }
  h2 { font-size: 2rem; }
  .portal-menu,
  .demo-project-grid,
  .website-price-grid,
  .service-capability-grid,
  .flow-grid,
  .contact-form,
  .portal-help-grid { grid-template-columns: 1fr; }
  .hero-actions,
  .section-action,
  .demo-card-actions { display: grid; }
  .button,
  .card-link { width: 100%; }
}


/* Mobile overflow hard guard */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body,
.site-header,
.mobile-nav,
.portal-hero,
.webdev-hero,
.contact-terminal-shell,
.section,
.portal-copy,
.webdev-hero-copy,
.contact-terminal-info,
.contact-terminal-form,
.demo-project-card,
.website-price-card,
.service-capability-grid article {
  min-width: 0;
}

h1, h2, h3, p, a, span, strong, em, li, dd, dt, label, input, select, textarea, button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-core,
.service-console {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 620px) {
  .portal-hero,
  .webdev-hero,
  .contact-terminal-shell,
  .section {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .portal-copy,
  .webdev-hero-copy,
  .contact-terminal-info,
  .contact-terminal-form,
  .contact-shell,
  .no-template-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .portal-core,
  .service-console {
    display: none;
  }
}


/* Mobile headline fit correction */
@media (max-width: 620px) {
  h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.72rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1.18rem;
  }

  .portal-copy,
  .webdev-hero-copy,
  .contact-terminal-info,
  .contact-terminal-form,
  .contact-shell,
  .no-template-section,
  .demo-project-card,
  .website-price-card,
  .service-capability-grid article {
    width: 100%;
    max-width: 100%;
  }

  .portal-copy p,
  .webdev-hero-copy p,
  .contact-terminal-info p {
    font-size: 0.98rem;
  }

  .eyebrow,
  .status {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}


/* Final mobile hero breathing room */
@media (max-width: 620px) {
  h1 {
    font-size: 1.72rem;
    line-height: 1.14;
  }

  .portal-copy,
  .webdev-hero-copy,
  .contact-terminal-info {
    padding: 20px 18px;
  }

  .portal-copy p,
  .webdev-hero-copy p,
  .contact-terminal-info p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .portal-menu,
  .portal-status-dock,
  .portal-signal-grid {
    gap: 10px;
  }
}
