/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Brand kit: Midnight, Blue, Teal, White, blue-to-teal gradient. Helvetica / Arial. */
:root {
  --midnight: #060B19;
  --midnight-soft: #0A1122;
  --surface: #0E162B;
  --surface-hover: #132039;
  --blue: #0064EF;
  --teal: #00C7C4;
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 199, 196, 0.35);
  --gradient: linear-gradient(45deg, var(--blue) 0%, var(--teal) 100%);
  --success: var(--teal);
  --error: #FF6B6B;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: var(--font);
  --radius: 12px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px var(--border-strong), 0 12px 40px rgba(0, 100, 239, 0.18);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  color: var(--white);
  line-height: 1.6;
  background: var(--midnight);
}

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

ul, ol {
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 760px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--white);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--text);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 11, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

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

.nav-links .nav-cta {
  background: var(--gradient);
  color: var(--midnight);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-links .nav-cta:hover {
  color: var(--midnight);
  filter: brightness(1.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 100, 239, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 75%, rgba(0, 199, 196, 0.12) 0%, transparent 70%),
    var(--midnight);
  color: var(--white);
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Faint data grid, from the brand kit's dot-matrix visual element */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 199, 196, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-logo {
  width: clamp(200px, 26vw, 260px);
  margin: 0 auto 36px;
}

.hero-accent {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--text);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--midnight);
  box-shadow: 0 8px 28px rgba(0, 100, 239, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 34px rgba(0, 199, 196, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-full {
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 12px;
}

.narrow p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Shared card surface */
.module,
.industry,
.founder,
.custom-list li,
.integrations,
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.module,
.industry {
  transition: var(--transition);
}

.module:hover,
.industry:hover {
  background: var(--surface-hover);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ===== SPLIT LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ===== PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.pillar,
.security-item {
  position: relative;
  padding-top: 20px;
}

.pillar::before,
.security-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}

.security-item::before {
  width: 48px;
}

/* ===== MODULES ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.module {
  padding: 28px 24px;
}

.module p {
  font-size: 0.95rem;
}

/* ===== INTEGRATIONS ===== */
.integrations {
  overflow: hidden;
}

.integration-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.integration-row:last-child {
  border-bottom: none;
}

.integration-row h3 {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--teal);
}

.integrations-note {
  text-align: center;
  margin-top: 28px;
  font-weight: 500;
  color: var(--white);
}

/* ===== INDUSTRIES ===== */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry {
  padding: 32px 28px;
}

/* ===== CUSTOM SOFTWARE ===== */
.custom-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-list li {
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--text);
}

.custom-list strong {
  color: var(--white);
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.steps-note {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

/* ===== SECURITY ===== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== ABOUT ===== */
.about-mark {
  width: 72px;
  margin-bottom: 24px;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.founder {
  padding: 28px 24px;
}

.narrow .founder p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.founder-role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 8px;
}

.narrow .founder .founder-edu {
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-form-wrapper {
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--white);
  background: var(--midnight);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 199, 196, 0.18);
}

.form-group textarea {
  resize: vertical;
}

.form-error {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--error);
}

.form-error a {
  text-decoration: underline;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: var(--midnight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.4rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--midnight);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer p {
  color: var(--text-muted);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
}

.footer-logo {
  height: 46px;
  width: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer-brand .footer-tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--teal);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-copy {
  text-align: right;
}

.footer-copy p {
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--midnight);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-200%);
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .split,
  .contact-wrapper,
  .founders {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .integration-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
