:root {
  --bg: #07111f;
  --bg-soft: #0d1b2a;
  --card: rgba(11, 20, 34, 0.72);
  --card-strong: rgba(18, 28, 46, 0.92);
  --line: rgba(154, 178, 255, 0.2);
  --text: #edf4ff;
  --muted: #c0d0eb;
  --pink: #ff5ea8;
  --orange: #ff9b54;
  --purple: #8a7dff;
  --cyan: #53d6ff;
  --lime: #7ef3b2;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --input-bg: rgba(255, 255, 255, 0.02);
  --input-text: #edf4ff;
  --toggle-border: rgba(255, 255, 255, 0.16);
}

body[data-theme="light"] {
  --bg: #eef4ff;
  --bg-soft: #f8fbff;
  --card: rgba(255, 255, 255, 0.85);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(41, 56, 92, 0.1);
  --text: #0f172a;
  --muted: #485d7a;
  --pink: #ff5ea8;
  --orange: #ff9b54;
  --purple: #6a68f0;
  --cyan: #0a6ea8;
  --lime: #1a9d68;
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  --input-bg: rgba(15, 23, 42, 0.02);
  --input-text: #0f172a;
  --toggle-border: rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(90, 120, 255, 0.25), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 94, 168, 0.15), transparent 25%),
    var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 18px;
  backdrop-filter: blur(10px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 94, 168, 0.2), rgba(138, 125, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(94, 110, 255, 0.2);
  overflow: hidden;
}

.brand-phone {
  position: absolute;
  left: 12px;
  top: 9px;
  width: 16px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(216,225,255,0.85));
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-phone::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  opacity: 0.9;
}

.brand-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.38);
  transform: translateX(-50%);
}

.brand-keyboard {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 22px;
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.18));
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.brand-keyboard::before,
.brand-keyboard::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
}

.brand-keyboard::before {
  left: 5px;
  box-shadow: 5px 0 0 rgba(255,255,255,0.7), 10px 0 0 rgba(255,255,255,0.7), 15px 0 0 rgba(255,255,255,0.7);
}

.brand-keyboard::after {
  right: 4px;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: rgba(83, 214, 255, 0.8);
}

.brand-name {
  display: block;
  font-weight: 700;
}

.brand-wrap small {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(11, 20, 34, 0.45);
  border-radius: 999px;
}

body[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.7);
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(138, 125, 255, 0.18);
  color: var(--text);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--toggle-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.landing-page,
.sub-page {
  min-height: 100vh;
}

.site-shell,
.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100vh - 92px);
  gap: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--cyan);
}

.hero-copy h1,
.page-intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.lead,
.page-intro p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 640px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 28px rgba(255, 94, 168, 0.35);
  color: white;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.primary-btn:hover,
.secondary-btn:hover,
.link-card:hover,
.info-card:hover,
.form-panel:hover {
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.stats li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px;
}

.stats strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.stats span {
  color: var(--muted);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.art-card {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(138, 125, 255, 0.14), rgba(83, 214, 255, 0.12));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.75;
}

.orb-one {
  width: 220px;
  height: 220px;
  background: rgba(255, 94, 168, 0.28);
  top: 60px;
  left: 28px;
}

.orb-two {
  width: 240px;
  height: 240px;
  background: rgba(83, 214, 255, 0.2);
  right: 40px;
  bottom: 40px;
}

.orb-three {
  width: 160px;
  height: 160px;
  background: rgba(126, 243, 178, 0.2);
  bottom: 62px;
  left: 180px;
}

.glass-panel {
  position: relative;
  width: 74%;
  padding: 30px 24px;
  background: rgba(7, 17, 31, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  z-index: 1;
}

body[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.4);
}

.mini-label {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.glass-panel h2 {
  margin: 18px 0 20px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 80px;
}

.bars span {
  display: block;
  width: 18%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  animation: pulseBars 1.5s ease-in-out infinite alternate;
}

.bars span:nth-child(1) { height: 28%; }
.bars span:nth-child(2) { height: 52%; animation-delay: 0.1s; }
.bars span:nth-child(3) { height: 74%; animation-delay: 0.2s; }
.bars span:nth-child(4) { height: 92%; animation-delay: 0.3s; }
.bars span:nth-child(5) { height: 62%; animation-delay: 0.4s; }

.page-wrap {
  padding: 60px 0 90px;
}

.page-intro {
  margin-bottom: 28px;
}

.contact-grid,
.links-grid {
  display: grid;
  gap: 24px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  margin-bottom: 38px;
}

.info-card,
.link-card,
.form-panel {
  position: relative;
  padding: 30px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 94, 168, 0.2), rgba(83, 214, 255, 0.2));
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-card h2,
.link-card h2,
.form-header h2 {
  margin: 0 0 14px;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.info-card a:hover {
  color: var(--text);
}

.links-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.link-card {
  display: block;
}

.badge {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(83, 214, 255, 0.1);
  color: var(--cyan);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-panel {
  max-width: 840px;
}

.form-header {
  margin-bottom: 20px;
}

#contact-form {
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(83, 214, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(83, 214, 255, 0.12);
}

textarea {
  resize: vertical;
  min-height: 160px;
}

.submit-btn {
  justify-self: start;
  min-width: 180px;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin: 0;
  min-height: 24px;
  color: var(--lime);
  font-weight: 600;
}

.form-status.error {
  color: #ff8aa6;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 18, 0.96);
  z-index: 60;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-art {
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: spin 4s linear infinite;
}

.ring-one {
  width: 100%;
  height: 100%;
}

.ring-two {
  width: 74%;
  height: 74%;
  animation-direction: reverse;
  animation-duration: 3s;
}

.ring-three {
  width: 48%;
  height: 48%;
  animation-duration: 2.5s;
}

.core {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 30px rgba(83, 214, 255, 0.5);
}

.loader-text {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.loader-subtext {
  margin: 14px 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.reveal-panel {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s ease forwards;
}

.reveal-panel:nth-child(2) { animation-delay: 0.12s; }
.reveal-panel:nth-child(3) { animation-delay: 0.2s; }
.reveal-panel:nth-child(4) { animation-delay: 0.28s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseBars {
  from { transform: scaleY(0.82); opacity: 0.8; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .contact-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
    min-height: auto;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .cta-row {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

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

  .submit-btn {
    width: 100%;
  }
}
