/* ============================================================
   KRUEGER KINETIC — Main Stylesheet
   Dark neon tech theme matching brand identity
   ============================================================ */

/* ── Reset & Root ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:     #06090f;
  --bg-secondary:   #0b1220;
  --bg-card:        #0f1a2e;
  --bg-card-hover:  #132035;

  --accent:         #00c8ff;
  --accent-dim:     #0099cc;
  --accent-glow:    rgba(0, 200, 255, 0.18);
  --accent-glow-lg: rgba(0, 200, 255, 0.08);

  --text-primary:   #e2f0ff;
  --text-secondary: #8aaac0;
  --text-muted:     #4a6a80;

  --border:         rgba(0, 200, 255, 0.12);
  --border-hover:   rgba(0, 200, 255, 0.35);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --transition: 0.25s ease;

  --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  --nav-height: 72px;
  --max-width:  1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

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

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  background: rgba(6, 9, 15, 0.97);
  border-bottom-color: var(--border-hover);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 38px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition) !important;
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--bg-primary) !important;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1;
}

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

.btn--primary:hover {
  background: #fff;
  color: var(--bg-primary);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-glow);
  color: #fff;
  border-color: #fff;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 200, 255, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(0, 100, 200, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero__title .accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 200, 255, 0.4);
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.6;
}

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

.hero__logo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 420px);
  opacity: 0.85;
  filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.25));
  pointer-events: none;
}

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 64px;
}

.stat {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
}

.stat__value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(0, 200, 255, 0.35);
}

.stat__label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── About Section ────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-layout .section__label,
.about-layout .section__title {
  text-align: left;
}

.about__body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about__body p + p {
  margin-top: 16px;
}

.about__highlights {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.about__highlights li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__logo-wrap {
  position: relative;
}

.about__logo-wrap img {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 0 60px rgba(0, 200, 255, 0.3));
}

.about__glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Process Steps ────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-left: 0;
  text-align: center;
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.process-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 15px;
  color: var(--text-primary);
}

.contact-info__value a {
  color: var(--text-primary);
}

.contact-info__value a:hover {
  color: var(--accent);
}

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300c8ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

.form__success {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-banner__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-banner__sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__logo {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 9, 15, 0.98);
    padding: 40px 24px;
    gap: 24px;
    align-items: flex-start;
    z-index: 99;
  }
  .nav__links.open a { font-size: 20px; }
  .nav__toggle { display: flex; }

  .form__row { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
  .cta-banner { padding: 40px 24px; }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
