/* ============================================
   KISMET CODE DIGITAL — STATIC SITE STYLES
   All tokens, base styles, and page styles in
   one file, matching the ConnectUs/Hope Gala
   static-site architecture.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0e14;
  --bg-raised: #131922;
  --bg-raised-2: #1a212c;
  --ink: #f5f7fa;
  --slate: #8b95a5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --blue: #2f7dfa;
  --emerald: #16c98d;
  --signal-gradient: linear-gradient(135deg, #2f7dfa 0%, #16c98d 100%);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --type-hero: clamp(2.75rem, 6vw, 4.75rem);
  --type-h1: clamp(2rem, 4vw, 3rem);
  --type-h2: clamp(1.4rem, 2.4vw, 1.9rem);
  --type-body: 1.0625rem;
  --type-eyebrow: 0.8125rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --content-width: 1120px;
  --content-width-narrow: 720px;
  --radius: 12px;
  --radius-sm: 6px;

  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- BASE ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 85% 40%, rgba(34, 211, 238, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 15% 70%, rgba(34, 211, 238, 0.22) 0%, transparent 55%),
    linear-gradient(to bottom, #070b14, #0f172a);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Site-wide watermark, replacing the old img.hero__watermark that
   only existed on the home page. Fixed positioning + z-index: -1
   means this shows on every page automatically, with no HTML
   markup required anywhere. */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  max-width: none;
  background-image: url('/assets/images/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  filter: grayscale(0.4) brightness(1.8);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 640px) {
  body::before {
    width: 600px;
    height: 600px;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--signal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: none;
}

.btn--primary {
  background: var(--signal-gradient);
  color: var(--bg);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(47, 125, 250, 0.3);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: rgba(47, 125, 250, 0.08);
}

.page-hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
  max-width: var(--content-width-narrow);
}

.page-hero__title {
  font-size: var(--type-h1);
  margin-top: var(--space-2);
}

.page-hero__sub {
  font-size: 1.05rem;
  color: var(--slate);
  margin-top: var(--space-3);
  max-width: 520px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__link {
  font-size: 0.9375rem;
  color: var(--slate);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--signal-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-settle);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.nav__cta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--signal-gradient);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav__inner {
    flex-wrap: wrap;
    row-gap: var(--space-1);
  }
  .nav__links {
    gap: var(--space-2);
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }
  .nav__wordmark {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav__link {
    font-size: 0.85rem;
  }
  .nav__cta {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: var(--space-7);
  padding-bottom: var(--space-3);
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.9;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--slate);
  margin-top: 2px;
}

.footer__cols {
  display: flex;
  gap: var(--space-6);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__col .eyebrow {
  margin-bottom: 0.3rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--slate);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--emerald);
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--slate);
  opacity: 0.75;
  padding-bottom: var(--space-3);
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
  }
  .footer__cols {
    gap: var(--space-4);
  }
}

/* ---------- ALIEN NODE (hexagon) ---------- */
.alien-node {
  position: relative;
  width: 180px;
  height: 200px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: transparent;
  border: 1.5px solid var(--node-glow, #22d3ee);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s var(--ease-settle);
}

.alien-node:hover {
  transform: scale(1.06);
  z-index: 10;
}

.alien-node__hex {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2);
}

.alien-node__content {
  max-width: 82%;
}

.alien-node__content h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.alien-node__content p {
  font-size: 0.75rem;
  color: var(--slate);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .alien-node {
    width: 200px;
    height: 220px;
  }
}

/* ---------- HOME ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__headline {
  font-size: var(--type-hero);
  margin-top: var(--space-2);
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 500px;
  margin-top: var(--space-3);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.platforms-section {
  padding: var(--space-6) var(--space-3);
  position: relative;
}

.platforms-section__title {
  font-size: var(--type-h1);
  margin-top: var(--space-2);
  max-width: 640px;
}

.platforms-field {
  position: relative;
  width: 100%;
  height: 700px;
  margin-top: var(--space-6);
}

.platforms-field__node {
  position: absolute;
}

.platforms-field__node--1 { top: 0%; left: 15%; }
.platforms-field__node--2 { top: 15%; left: 60%; }
.platforms-field__node--3 { top: 35%; left: 35%; }
.platforms-field__node--4 { top: 45%; left: 75%; }
.platforms-field__node--5 { top: 60%; left: 25%; }

.cta-band {
  background: var(--bg-raised);
  padding: var(--space-6) 0;
  margin-top: var(--space-6);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(34, 211, 238, 0.18), transparent 60%);
}

.cta-band__inner {
  position: relative;
  text-align: center;
  max-width: 560px;
}

.cta-band h2 {
  color: var(--ink);
  font-size: var(--type-h1);
}

.cta-band p {
  color: var(--slate);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-6) 0 var(--space-5);
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
  .platforms-field {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }
  .platforms-field__node {
    position: static;
  }
  .cta-band__inner {
    padding: 0 var(--space-2);
  }
}

/* ---------- SERVICES ---------- */
.services-field-section {
  padding: var(--space-4) var(--space-3) var(--space-6);
}

.services-field {
  position: relative;
  width: 100%;
  height: 680px;
}

.services-field__node {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.services-field__node--1 { top: 5%; left: 8%; }
.services-field__node--2 { top: 0%; left: 62%; }
.services-field__node--3 { top: 32%; left: 32%; }
.services-field__node--4 { top: 42%; left: 70%; }
.services-field__node--5 { top: 62%; left: 12%; }

.services-cta {
  text-align: center;
  padding: var(--space-6) var(--space-3) var(--space-7);
  max-width: 520px;
  margin: 0 auto;
}

.services-cta h2 {
  font-size: var(--type-h2);
}

.services-cta p {
  color: var(--slate);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .services-field {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  .services-field__node {
    position: static;
  }
}

/* ---------- SERVICE MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-3);
}

.modal-overlay.is-open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.25s var(--ease-settle);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-raised-2);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--line-strong);
  color: var(--ink);
}

.modal-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--signal-gradient);
  margin-bottom: var(--space-3);
}

.modal-panel h2 {
  font-size: 1.5rem;
}

.modal-body {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
  margin-top: var(--space-2);
}

.modal-subhead {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.modal-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-list li {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.5;
}

.modal-cta {
  display: inline-block;
  margin-top: var(--space-4);
  border: none;
}

@media (max-width: 600px) {
  .modal-panel {
    padding: var(--space-4);
  }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  align-items: start;
}

.about-mark img {
  width: 100%;
  max-width: 180px;
}

.about-copy p {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.75;
  margin-top: var(--space-3);
  max-width: 600px;
}

.about-copy p:first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-mark img {
    max-width: 120px;
  }
}

/* ---------- CONTACT ---------- */
.contact-page {
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-intro {
  margin-bottom: var(--space-6);
}

.contact-intro__node {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-4);
}

.contact-intro h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-top: var(--space-3);
  letter-spacing: -0.02em;
}

.contact-sub {
  font-size: 1.1rem;
  color: var(--slate);
  margin-top: var(--space-3);
  line-height: 1.7;
}

.contact-email {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--bg-raised);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form button {
  align-self: center;
  border: none;
  margin-top: var(--space-2);
  width: 100%;
  padding: 1rem 1.7rem;
  font-size: 1rem;
}

.contact-success {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  padding: var(--space-4) 0;
  text-align: center;
  display: none;
}

.contact-success.is-visible {
  display: block;
}

.contact-error {
  font-size: 0.9375rem;
  color: #ff9b8a;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: none;
}

.contact-error.is-visible {
  display: block;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .contact-form {
    padding: var(--space-4);
  }
  .contact-intro__node {
    width: 110px;
    height: 110px;
  }
}
