:root {
  --bg: #07111f;
  --bg-deep: #030913;
  --surface: rgba(10, 22, 40, 0.86);
  --surface-strong: rgba(14, 31, 55, 0.96);
  --line: rgba(107, 203, 255, 0.16);
  --text: #eef7ff;
  --muted: #94a9c2;
  --accent: #39d0ff;
  --accent-2: #7bffb7;
  --accent-3: #4f7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.22), transparent 22%),
    radial-gradient(circle at top right, rgba(57, 208, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #091426 0%, var(--bg) 40%, var(--bg-deep) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

.hero {
  padding: 0 0 1.25rem;
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 0;
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0;
  background: rgba(5, 14, 27, 0.78);
  backdrop-filter: blur(14px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(4, 13, 24, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(57, 208, 255, 0.32);
}

.topbar a {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 32px;
  padding: 2.5rem;
  background:
    linear-gradient(180deg, rgba(13, 27, 48, 0.74), rgba(6, 16, 29, 0.86)),
    var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hero-panel::before {
  top: -4rem;
  right: -2rem;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.32), transparent 68%);
}

.hero-panel::after {
  bottom: -5rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(57, 208, 255, 0.16), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(123, 255, 183, 0.22);
  border-radius: 999px;
  background: rgba(123, 255, 183, 0.08);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin: 1rem 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 65%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.feature-card:hover,
.detail-card:hover,
.tech-pill:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #04111e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(57, 208, 255, 0.22);
}

.button-secondary {
  border: 1px solid rgba(107, 203, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.35rem;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-card h2 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-box {
  padding: 1rem;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 21, 39, 0.92), rgba(11, 25, 44, 0.75));
  box-shadow: inset 0 0 0 1px rgba(57, 208, 255, 0.08);
}

.signal-box strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.signal-box span,
.panel p,
.detail-card p {
  color: var(--muted);
  line-height: 1.7;
}

main {
  padding: 1.25rem 0 3.5rem;
}

section {
  margin-top: 1.9rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 2rem 2.15rem;
  border: none;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.7), rgba(9, 18, 34, 0.62));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.panel h2 {
  margin-bottom: 0.9rem;
  font-size: 1.45rem;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.services-main p + p {
  margin-top: 0.9rem;
}

.services-side {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.feature-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 0;
}

.feature-grid,
.detail-grid {
  grid-auto-rows: 1fr;
}

.feature-card,
.detail-card {
  padding: 1.15rem 1.2rem;
  border: none;
  border-radius: 22px;
  background: rgba(14, 31, 55, 0.84);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 420ms ease,
    filter 420ms ease;
}

.feature-card:hover,
.detail-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.feature-card strong,
.detail-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
}

.feature-card {
  height: 100%;
}

.detail-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 18px;
  color: var(--accent);
  background:
    radial-gradient(circle at top left, rgba(123, 255, 183, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(57, 208, 255, 0.14), rgba(79, 124, 255, 0.1));
  box-shadow:
    inset 0 0 0 1px rgba(57, 208, 255, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.detail-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.detail-copy {
  min-width: 0;
}

.detail-copy p {
  margin-bottom: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
  justify-content: flex-start;
  align-content: flex-start;
}

.tech-pill {
  padding: 0.7rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: rgba(123, 255, 183, 0.06);
  color: #d6ffe9;
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(123, 255, 183, 0.14);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.tech-pill:hover {
  background: rgba(123, 255, 183, 0.1);
  box-shadow: inset 0 0 0 1px rgba(123, 255, 183, 0.3);
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.contact-intro {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.95rem;
}

.field span {
  color: var(--text);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(107, 203, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.7);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(57, 208, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(57, 208, 255, 0.12);
  background: rgba(8, 20, 37, 0.92);
}

.contact-form-panel,
.contact-info-panel {
  min-width: 0;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-line span {
  color: var(--muted);
  text-align: right;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.1rem;
}

.contact-link-icon {
  display: inline-grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(14, 31, 55, 0.84);
  box-shadow: inset 0 0 0 1px rgba(57, 208, 255, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.contact-link-icon:hover {
  color: var(--accent-2);
  background: rgba(17, 38, 66, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(123, 255, 183, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.contact-link-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.footer-note {
  margin-top: 1.1rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    filter 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .services-layout,
  .contact-layout,
  .feature-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .contact-line {
    flex-direction: column;
  }

  .contact-line span {
    text-align: left;
  }

  .services-side {
    justify-content: flex-start;
  }

  .tech-stack {
    margin-top: 0.6rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.25rem, 1240px);
  }

  .topbar-shell {
    padding: 0;
  }

  .topbar,
  .hero-panel,
  .panel {
    padding: 1.15rem;
  }

  .topbar {
    padding: 0.95rem 1rem;
  }

  h1 {
    font-size: 2.9rem;
  }
}
