:root {
  --bg-void: #0b1020;
  --bg-deep: #0f1428;
  --bg-panel: #141b38;
  --bg-panel-2: #1c2952;

  --accent-cyan: #7cc7ff;
  --accent-blue: #4fa3ff;
  --accent-violet: #8f7cff;

  --text-primary: #f5f7ff;
  --text-secondary: #c8d2f0;
  --text-muted: #8fa0d6;

  --line: rgba(124, 199, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 103%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16.5px;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--accent-blue);
  color: var(--bg-void);
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   LAYOUT SHELLS
   ============================================================ */
.section {
  padding: 6rem 7%;
  position: relative;
}

.alt-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent-cyan);
  display: inline-block;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.section-subtext {
  max-width: 700px;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 1.02rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.4rem;
  margin-bottom: 4.5rem;
  background: rgba(15, 20, 40, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--accent-cyan);
  background: rgba(124, 199, 255, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-void) !important;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 199, 255, 0.28);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(124, 199, 255, 0.08);
  cursor: pointer;
  padding: 0.65rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 999px;
  margin: 5px 0;
}

.page-header {
  padding: 2rem 7% 0;
}

.page-header .navbar {
  margin-bottom: 3.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 2rem 7% 4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #182352 0%, var(--bg-void) 60%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 90px;
  right: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 199, 255, 0.12), transparent 68%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: url("images/logo.png") no-repeat center;
  background-size: contain;
  opacity: 0.08;
  filter: blur(2px) brightness(1.2);
  pointer-events: none;
  z-index: 0;
}

.hero-canvas-wrap {
  position: absolute;
  top: 0;
  right: -6%;
  width: min(58vw, 900px);
  height: 100%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  max-width: 700px;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-void);
  box-shadow: 0 8px 24px rgba(124, 199, 255, 0.24);
  border: 1px solid transparent;
}

.btn-secondary {
  border: 1px solid rgba(124, 199, 255, 0.45);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(124, 199, 255, 0.08);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1200px;
}

.card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out, border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  will-change: transform;
}

.card:hover {
  border-color: rgba(124, 199, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  transform: translateZ(20px);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  transform: translateZ(12px);
}

.card a {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  transform: translateZ(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.card a:hover {
  border-color: var(--accent-cyan);
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-study-section {
  padding-top: 3.5rem;
  position: relative;
  text-align: center;
}

.case-study-section .section-header {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
}

.case-study-section .section-tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.case-study-section h2 {
  max-width: 720px;
  margin: 0 auto 0.6rem;
}

.case-study-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0 1.6rem;
}

.case-study-visual {
  display: flex;
  justify-content: center;
  margin: 1.2rem 0 2.5rem;
}

.case-study-visual img {
  width: 58%;
  max-width: 620px;
  min-width: 280px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.case-study-visual img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.case-study-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.case-study-card p {
  color: var(--text-secondary);
  margin-top: 0.7rem;
}

.case-study-card p:first-of-type {
  margin-top: 0;
}

.case-result,
.trust-line {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.case-result {
  margin-top: 1.4rem;
  font-size: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.trust-line {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.case-meta {
  max-width: 820px;
  margin-top: 1rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-text {
  max-width: 800px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-text + .about-text {
  margin-top: 1rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-intro {
  max-width: 520px;
}

.contact-intro h2 {
  margin-bottom: 1rem;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-points p {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 199, 255, 0.08);
  border: 1px solid rgba(124, 199, 255, 0.14);
  color: #dce3ff;
  font-size: 0.92rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 199, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.contact-card .contact-form {
  max-width: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(17, 25, 51, 0.88);
  color: white;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #93a4d8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(124, 199, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 199, 255, 0.12);
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form button,
.contact-form .btn-primary {
  border: none;
  cursor: pointer;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-note {
  margin-top: 0.65rem;
  color: #9fb3ff;
  font-size: 0.95rem;
}

.contact-meta {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-email-label {
  color: #9fb3ff;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.contact-email {
  margin-top: 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.contact-meta .contact-email {
  margin-top: 0;
}

.contact-email a:hover {
  opacity: 0.9;
}

#form-status {
  min-height: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 7% 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .navbar {
    margin-bottom: 2.5rem;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(15, 20, 40, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    z-index: 9999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.9rem;
    font-size: 0.95rem;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.35rem;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 92vh;
  }

  .hero-canvas-wrap {
    width: 100%;
    right: 0;
    top: auto;
    bottom: -8%;
    height: 52%;
    opacity: 0.55;
  }

  .hero h1 {
    max-width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
    perspective: none;
  }

  .card {
    transform: none !important;
  }

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

  .contact-intro {
    max-width: 100%;
  }

  .contact-card {
    padding: 1.1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 7%;
  }

  .case-study-section .section-header,
  .case-study-section h2 {
    max-width: 100%;
  }

  .case-study-visual img {
    width: 92%;
    min-width: 0;
  }

  .case-study-card,
  .case-result,
  .trust-line {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 100%;
  }

  .hero,
  .page-header,
  .section,
  .footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .navbar {
    padding: 0.8rem 0.95rem;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .logo img {
    height: 30px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}
