:root {
  --bg: #050608;
  --bg-2: #080b0f;
  --panel: #0d1117;
  --panel-2: #111720;
  --panel-3: #151c26;
  --text: #f2f4f7;
  --muted: #939baa;
  --muted-2: #657081;
  --line: #25303d;
  --line-soft: rgba(151, 165, 183, .18);
  --storm: #aeb8c7;
  --storm-bright: #d8dee7;
  --storm-dark: #667386;
  --steel: #8d98a9;
  --success: #b8c3d2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(145, 160, 180, .08), transparent 28%),
    linear-gradient(180deg, #050608 0%, #07090d 45%, #050608 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input, a { font: inherit; }
button { color: inherit; }

.page-shell {
  min-height: 100vh;
  position: relative;
}

.topbar {
  width: min(1320px, calc(100% - 72px));
  min-height: 66px;
  margin: 10px auto 0;
  padding: 0 10px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(159, 171, 188, .16);
  border-radius: 21px;
  background:
    linear-gradient(180deg, rgba(18, 23, 30, .83), rgba(10, 13, 18, .86));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 10px;
  z-index: 50;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  width: fit-content;
}

.brand-x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #dce2eb;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: skewX(-10deg);
  text-shadow: 0 0 20px rgba(186, 198, 214, .18);
}

.brand-name {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .08em;
}

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

.nav-link {
  position: relative;
  padding: 22px 0 19px;
  border: 0;
  background: transparent;
  color: #a5acb7;
  cursor: pointer;
  font-size: 14px;
  transition: .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--storm-bright), transparent);
  box-shadow: 0 0 10px rgba(190, 201, 216, .55);
  transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f3f5f7;
}

.nav-link.active::after {
  width: 78%;
}

.account-area {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn,
.logout-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(170, 184, 204, .25);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(30, 36, 46, .72), rgba(12, 16, 22, .9));
  color: #e9edf3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 6px 18px rgba(0,0,0,.22);
}

.user-icon {
  font-size: 20px;
  color: #bfc8d5;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
}

.user-chip img,
.user-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(177, 191, 210, .28);
  background: #111720;
  display: grid;
  place-items: center;
}

.user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-text strong,
.user-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-text strong {
  font-size: 12px;
  letter-spacing: .03em;
}

.user-text small {
  color: var(--muted);
  font-size: 10px;
}

main {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
}

.page {
  display: none;
  min-height: calc(100vh - 126px);
  padding: 64px 0 46px;
}

.page.active { display: block; }

.hero-wrap {
  position: relative;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 95px;
  width: 1000px;
  height: 380px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(136, 152, 173, .13), rgba(136,152,173,.02) 47%, transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 0 52px;
}

.pill {
  width: fit-content;
  margin: 0 auto 23px;
  min-height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(161, 175, 194, .27);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(21, 27, 35, .82), rgba(10, 14, 20, .82));
  color: #b4bdca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.pill-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6d2e2;
  box-shadow:
    0 0 10px rgba(198, 210, 226, .8),
    0 0 22px rgba(136, 153, 177, .5);
}

.pill-sep {
  color: #697487;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 950;
  background: linear-gradient(180deg, #ffffff 0%, #e5e9ef 43%, #8995a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 38px rgba(150, 165, 187, .08);
}

.hero p {
  margin: 22px auto 0;
  color: #aeb5c0;
  font-size: 16px;
  line-height: 1.6;
}

.side-copy {
  position: absolute;
  top: 78px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #616d7d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .34em;
}

.side-copy i {
  width: 38px;
  height: 1px;
  margin-top: 6px;
  background: #788494;
}

.left-side { left: 2px; }
.right-side { right: 2px; align-items: flex-start; }

.engine-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 4px 28px;
  position: relative;
  z-index: 2;
}

.mini-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #818c9c;
  font-size: 10px;
  letter-spacing: .31em;
  font-weight: 800;
  margin-bottom: 12px;
}

.kicker-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #ccd4df, #5c6878);
  box-shadow: 0 0 9px rgba(190, 202, 218, .35);
}

.engine-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: .08em;
  line-height: 1;
  font-weight: 900;
  color: #e8ebf0;
}

.engine-tagline {
  margin-bottom: 2px;
  color: #626e80;
  font-size: 9px;
  letter-spacing: .33em;
  font-weight: 800;
}

.optimizer-card {
  position: relative;
  z-index: 2;
  padding: 22px 26px 26px;
  border: 1px solid rgba(156, 170, 189, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(99, 114, 135, .08), transparent 36%),
    linear-gradient(180deg, rgba(15,20,27,.96), rgba(9,12,17,.97));
  box-shadow:
    0 26px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  margin-bottom: 14px;
}

.engine-name {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c4cbd5;
  font-size: 11px;
  letter-spacing: .17em;
}

.version {
  border: 1px solid rgba(148, 162, 181, .25);
  border-radius: 999px;
  padding: 4px 9px;
  color: #778395;
  font-size: 9px;
}

.process-map {
  color: #6c7788;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .28em;
}

.drop-zone {
  width: 100%;
  min-height: 310px;
  border: 1px dashed rgba(130, 145, 165, .38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(134, 149, 169, .06), transparent 35%),
    linear-gradient(180deg, rgba(14,19,26,.88), rgba(9,13,18,.93));
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: .22s ease;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: rgba(196, 207, 221, .68);
  box-shadow:
    inset 0 0 40px rgba(135, 151, 173, .035),
    0 0 24px rgba(125, 142, 165, .05);
}

.upload-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 17px;
  border: 1px solid rgba(165, 179, 198, .28);
  background:
    linear-gradient(145deg, rgba(88,101,119,.32), rgba(22,29,39,.45));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.2);
}

.upload-icon span {
  font-size: 30px;
  line-height: 1;
  color: #c5cedb;
  transform: translateY(-1px);
}

.drop-zone strong {
  font-size: 21px;
  font-weight: 760;
}

.drop-zone > span {
  margin-top: 7px;
  color: #8d97a6;
  font-size: 14px;
}

.inside-divider {
  width: min(340px, 62%);
  height: 1px;
  margin: 20px 0 16px;
  background: linear-gradient(90deg, transparent, rgba(152, 167, 187, .31), transparent);
}

.drop-zone small {
  color: #8c96a5;
  font-size: 12px;
}

.drop-zone small b {
  color: #d3d8e0;
  font-weight: 800;
}

.action-area {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.primary-btn,
.download-btn {
  width: min(370px, 100%);
  min-height: 58px;
  border-radius: 15px;
  border: 1px solid rgba(225, 231, 239, .55);
  background:
    linear-gradient(180deg, #d7dde6 0%, #aab5c4 48%, #7d899c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 11px 28px rgba(74, 87, 105, .18),
    0 0 0 1px rgba(105,119,139,.15);
  color: #0a0d12;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 0 18px;
  cursor: pointer;
  transition: .2s ease;
}

.primary-btn:hover,
.download-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.primary-btn:disabled {
  opacity: .46;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.bolt,
.arrow {
  font-size: 24px;
  line-height: 1;
}

.download-btn {
  margin-top: 13px;
  background: linear-gradient(180deg, #cfd6df, #909dae);
}

.download-note {
  margin: 18px 0 0;
  color: #768193;
  font-size: 11px;
}

.download-note span {
  color: #9eabba;
  margin-right: 10px;
}

.status {
  width: min(520px, 100%);
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 158, 178, .2);
  border-radius: 12px;
  background: rgba(12,16,22,.75);
  color: #aeb8c7;
  text-align: center;
  font-size: 12px;
}

.hidden { display: none !important; }

.inner-page {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 38px;
}

.section-head h2 {
  margin: 0 0 15px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #f7f8fa, #9ba7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.video-shell {
  padding: 12px;
  border: 1px solid rgba(154, 169, 189, .23);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17,23,31,.92), rgba(9,13,18,.96));
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 13px;
  background: #000;
}

.steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  min-height: 130px;
  padding: 20px;
  display: flex;
  gap: 16px;
  border: 1px solid rgba(145, 159, 179, .19);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(16,21,29,.92), rgba(10,14,19,.96));
}

.step-no {
  color: #9da9b9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.step strong {
  display: block;
  margin-bottom: 8px;
  color: #e1e5eb;
  font-size: 15px;
}

.step p {
  margin: 0;
  color: #778293;
  line-height: 1.5;
  font-size: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.price-card {
  min-height: 330px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(145, 160, 181, .2);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0%, rgba(135,151,173,.08), transparent 40%),
    linear-gradient(180deg, rgba(17,23,31,.95), rgba(9,13,18,.97));
  box-shadow: 0 18px 55px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(194, 205, 220, .5);
  box-shadow:
    0 18px 55px rgba(0,0,0,.22),
    inset 0 0 34px rgba(135,151,173,.05);
}

.featured-label {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(178,190,207,.28);
  border-radius: 99px;
  color: #aeb9c8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.plan-name {
  color: #8b96a6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.price {
  margin: 35px 0 10px;
  color: #eef1f5;
  font-size: 60px;
  font-weight: 950;
  letter-spacing: -.06em;
}

.price span {
  font-size: 22px;
  vertical-align: top;
  color: #8f9aaa;
}

.price-card p {
  color: #747f90;
  font-size: 12px;
}

.plan-btn {
  margin-top: auto;
  min-height: 48px;
  border: 1px solid rgba(186, 198, 214, .3);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(36,45,58,.9), rgba(16,22,30,.95));
  color: #d7dde5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.plan-btn:hover {
  border-color: rgba(218, 226, 237, .55);
  background: linear-gradient(180deg, rgba(50,61,77,.95), rgba(20,27,36,.98));
}

footer {
  width: min(1400px, calc(100% - 28px));
  margin: 10px auto 0;
  min-height: 66px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(123, 138, 157, .14);
  color: #626e7e;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 9px;
}

.footer-left strong {
  color: #9ba6b5;
  letter-spacing: .12em;
}

.footer-left > span {
  width: 1px;
  height: 20px;
  background: rgba(123,138,157,.24);
}

.footer-left p { margin: 0; }

.footer-right {
  display: flex;
  gap: 28px;
}

.footer-right a {
  color: #5f6a79;
  text-decoration: none;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(9px);
}

.modal-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(163, 177, 197, .25);
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 0%, rgba(134,149,170,.11), transparent 36%),
    linear-gradient(180deg, #111720, #0a0e13);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  position: relative;
}

.modal-pill {
  margin-left: 0;
}

.modal-card h3 {
  margin: 4px 0 10px;
  color: #edf0f4;
  font-size: 34px;
  letter-spacing: -.035em;
}

.modal-card > p {
  margin: 0;
  color: #8e98a7;
  line-height: 1.55;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 50%;
  background: #121821;
  color: #aab4c2;
  cursor: pointer;
  font-size: 21px;
}

.modal-plans {
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-plans button {
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid rgba(151, 165, 184, .2);
  border-radius: 13px;
  background: #111720;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.modal-plans button:hover {
  border-color: rgba(204, 215, 229, .5);
}

.modal-plans span {
  color: #a7b0be;
}

.modal-plans b {
  color: #eef1f5;
}

.google-modal-btn {
  margin-top: 12px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #d7dde5;
  border-radius: 13px;
  background: linear-gradient(180deg, #edf1f5, #aeb9c8);
  color: #0b0f14;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

@media (max-width: 1000px) {
  .topbar {
    width: calc(100% - 30px);
    grid-template-columns: 1fr auto;
    padding: 8px 12px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 24px;
  }

  main {
    width: calc(100% - 30px);
  }

  .side-copy,
  .engine-tagline,
  .process-map {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    margin-top: 7px;
    top: 7px;
  }

  .brand-name {
    display: none;
  }

  .brand-x {
    width: 35px;
    height: 35px;
    font-size: 27px;
  }

  .nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .login-btn {
    padding: 0 12px;
  }

  .user-text,
  .logout-btn {
    display: none;
  }

  .page {
    padding-top: 46px;
  }

  .desktop-break {
    display: none;
  }

  .engine-heading h2 {
    font-size: 25px;
    line-height: 1.15;
  }

  .optimizer-card {
    padding: 16px;
  }

  .card-topline {
    margin-bottom: 10px;
  }

  .drop-zone {
    min-height: 270px;
    padding: 22px 14px;
  }

  .drop-zone strong {
    font-size: 18px;
  }

  .drop-zone > span,
  .drop-zone small {
    font-size: 11px;
  }

  .pricing-grid,
  .steps,
  .modal-plans {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .footer-right {
    gap: 18px;
  }
}
