/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0d12;
  --bg-alt: #10151c;
  --surface: #141a23;
  --surface-border: #232b37;
  --text: #edf1f6;
  --text-muted: #8d99aa;
  --blue: #3568d4;
  --blue-bright: #5c8ef2;
  --blue-dim: rgba(53, 104, 212, 0.13);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-brand: 'Orbitron', 'IBM Plex Sans', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote p {
  font-family: var(--font-display);
  text-wrap: balance;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

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

/* ---------- Brand banner ---------- */
.brand-banner {
  position: relative;
  overflow: hidden;
  background: #05070a;
  border-bottom: 1px solid var(--surface-border);
}

.brand-banner-beams {
  position: absolute;
  inset: 0;
}

.brand-banner-beams::before,
.brand-banner-beams::after {
  content: "";
  position: absolute;
  top: -20%;
  width: 42%;
  height: 160%;
  left: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 142, 242, 0.16) 35%,
    rgba(163, 195, 250, 0.55) 50%,
    rgba(92, 142, 242, 0.16) 65%,
    transparent
  );
  filter: blur(2px);
}

.brand-banner-beams::before {
  transform: translateX(-50%) rotate(28deg);
}

.brand-banner-beams::after {
  transform: translateX(-50%) rotate(-28deg);
}

.brand-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 24px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-main {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 40px rgba(92, 142, 242, 0.35);
}

.brand-sub {
  margin-top: 14px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1.4rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 0.5em;
}

@media (max-width: 480px) {
  .brand-banner-inner {
    padding: 50px 20px;
  }

  .brand-sub {
    letter-spacing: 0.32em;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--blue-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
}

/* ---------- Section scaffolding ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--surface-border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  margin-bottom: 40px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: var(--blue-dim);
  border: 1px solid rgba(53, 104, 212, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 120px;
  background:
    radial-gradient(720px 420px at 15% 0%, rgba(53, 104, 212, 0.18), transparent 60%),
    radial-gradient(600px 500px at 100% 20%, rgba(53, 104, 212, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.88), rgba(10, 13, 18, 0.97)),
    url('images/network-wave.jpg?v=2') center/cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--surface-border);
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.14;
  color: var(--text);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(53, 104, 212, 0.28);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(53, 104, 212, 0.38);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
}

/* ---------- Pain point ---------- */
.pain-point-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.pain-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

.pain-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(53, 104, 212, 0.32), rgba(10, 13, 18, 0.05) 55%);
}

.pain-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.03);
}

.pain-copy h2,
.approach-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin: 16px 0 20px;
}

.pain-copy p,
.approach-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.pain-copy p:last-child,
.approach-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.approach-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

.approach-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  mix-blend-mode: color;
  opacity: 0.92;
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.9);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-copy {
  max-width: 560px;
}

.detail-copy {
  max-width: 720px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  mix-blend-mode: color;
  opacity: 0.92;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
}

.about-copy .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- What We Do cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 32px 32px 32px 40px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 32px;
  width: 8px;
  height: 8px;
  background: var(--blue-bright);
  border-radius: 2px;
}

.card:hover {
  border-color: rgba(53, 104, 212, 0.45);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.35;
  position: relative;
  z-index: 2;
}

.card-photo {
  background-size: cover;
  background-position: center;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.card-has-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-bright);
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  gap: 10px;
  color: var(--text);
}

.card-photo::before {
  z-index: 2;
}

.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.35), rgba(10, 13, 18, 0.92));
  border-radius: inherit;
  z-index: 1;
}

.card-infra {
  background-image: url('images/server-rack.jpg?v=2');
}

.card-governance {
  background-image: url('images/server-corridor.jpg?v=2');
}

.card-legacy {
  background-image: url('images/cloud-circuit.jpg?v=2');
}

.card-app-dev {
  background-image: url('images/app-dev-code.jpg?v=1');
}

.card-telephony {
  background-image: url('images/telephony-network.jpg?v=1');
}

.card-security {
  background-image: url('images/security-network.jpg?v=1');
}

.card-placeholder {
  border-style: dashed;
  border-color: #34404f;
  background: transparent;
}

.card-placeholder::before {
  background: #4a5867;
}

.card-placeholder h3 {
  color: var(--text-muted);
}

.card-placeholder p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6b7787;
}

/* ---------- Difference ---------- */
.difference-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.difference-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.difference-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.difference-intro p:last-child {
  margin-bottom: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 32px 24px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 8px;
  height: 8px;
  background: var(--blue-bright);
  border-radius: 2px;
}

.pillar:hover {
  border-color: rgba(53, 104, 212, 0.45);
  transform: translateY(-2px);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  margin: 16px 0 10px;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Philosophy ---------- */
.philosophy {
  background:
    radial-gradient(600px 320px at 85% 100%, rgba(53, 104, 212, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(16, 21, 28, 0.93), rgba(16, 21, 28, 0.97)),
    url('images/geometry-weave.jpg?v=2') center/cover no-repeat,
    var(--bg-alt);
}

.philosophy-inner {
  max-width: 820px;
}

.philosophy blockquote p {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ---------- Contact / CTA ---------- */
.section-cta {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  text-align: center;
  padding: 160px 0 120px;
  min-height: 740px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(700px 460px at 50% 0%, rgba(53, 104, 212, 0.12), transparent 60%),
    var(--bg);
}

.cta-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cta-photo img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72%;
  height: auto;
  display: block;
  transform: translateX(-50%);
}

.cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.72) 0%, rgba(10, 13, 18, 0.55) 35%, rgba(10, 13, 18, 0.88) 78%, rgba(10, 13, 18, 0.96) 100%);
}

.section-cta .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  color: var(--text);
}

.section-cta .hero-actions {
  justify-content: center;
}

.cta-alt-contact {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-alt-contact a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Contact page ---------- */
.page-hero {
  padding: 160px 0 60px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.page-hero-lead {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.form-wrap {
  max-width: 760px;
}

.form-banner {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-banner-success {
  background: rgba(53, 104, 212, 0.12);
  border: 1px solid rgba(53, 104, 212, 0.4);
  color: var(--text);
}

.form-banner-error {
  background: rgba(217, 84, 84, 0.12);
  border: 1px solid rgba(217, 84, 84, 0.4);
  color: var(--text);
}

.form-banner-error a {
  color: var(--blue-bright);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-alt);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button.btn {
  justify-self: start;
  margin-top: 8px;
}

/* ---------- Thank-you modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.modal-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-dialog p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.logo-small {
  font-size: 0.9rem;
}

.demo-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.demo-link:hover {
  opacity: 1;
  color: var(--blue-bright);
}

/* ---------- Demo page ---------- */
.demo-section {
  padding: 160px 0 140px;
  text-align: center;
}

.demo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.demo-graphic {
  width: 140px;
  height: 140px;
  margin-bottom: 12px;
}

.demo-graphic svg {
  width: 100%;
  height: 100%;
}

.demo-section h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    gap: 18px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .about-image {
    order: -1;
  }

  .pain-point-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid .approach-image {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 110px 0 90px;
  }

  .section {
    padding: 72px 0;
  }

  .section-cta {
    min-height: 540px;
    padding: 100px 0 72px;
  }

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

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

  .page-hero {
    padding: 130px 0 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
