/* Product-specific styles for AI Profit Maximizer */
:root {
  --navy: #071629;
  --navy-2: #0c2340;
  --blue: #2e78ff;
  --cyan: #2bd4cf;
  --violet: #8a6cff;
  --green: #1ec997;
  --amber: #ffba49;
  --red: #ff6b72;
  --ink: #132033;
  --muted: #607089;
  --line: #dce6f2;
  --soft: #f4f8fd;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(4, 29, 61, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
img,
svg {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.topbar {
  background: #03101f;
  color: #cce2ff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 22, 41, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 30px rgba(46, 120, 255, 0.35);
  font-size: 20px;
}
.brand small {
  display: block;
  color: #8fc2ff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #c7d8ec;
  font-size: 14px;
  font-weight: 650;
}
.nav-links a:hover {
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;

  color: white;
  padding: 92px 0 76px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 58px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 23px 0 22px;
  max-width: 860px;
}
.gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy {
  font-size: 18px;
  color: #c8d8ea;
  max-width: 690px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 34px;
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #a9bfd6;
  font-size: 13px;
  font-weight: 650;
}
.trust-row span::before {
  content: "✓";
  color: var(--cyan);
  margin-right: 7px;
  font-weight: 900;
}

.engine-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  border-radius: 26px;
  padding: 21px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.engine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.engine-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.live-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(30, 201, 151, 0.13);
  color: #80f2cd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.booking-box {
  background: rgba(3, 13, 27, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  padding: 17px;
}
.booking-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.booking-top strong {
  display: block;
}
.booking-top small {
  color: #8ca8c5;
}
.price-old {
  color: #ffb3b7;
  text-decoration: line-through;
  font-weight: 800;
}
.flow-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.supplier {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.supplier small {
  color: #91abc6;
  display: block;
}
.supplier b {
  font-size: 18px;
}
.supplier.new {
  border-color: rgba(43, 212, 207, 0.35);
  background: rgba(43, 212, 207, 0.08);
}
.arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9cd9ff;
  background: rgba(46, 120, 255, 0.14);
}
.match-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 15px 0;
}
.match-chip {
  padding: 10px;
  border-radius: 11px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  color: #c6d9eb;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.match-chip strong {
  display: block;
  color: #7cf1d0;
  font-size: 13px;
}
.saving-banner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(30, 201, 151, 0.16),
    rgba(46, 120, 255, 0.13)
  );
  border: 1px solid rgba(92, 227, 190, 0.25);
}
.saving-banner small {
  color: #a8c7d9;
}
.saving-banner strong {
  font-size: 29px;
  color: #8af4d5;
  line-height: 1;
}
.saving-banner .status {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

section {
  padding: 88px 0;
}
.section-soft {
  background: var(--soft);
}
.section-dark {
  color: white;
  /* background: linear-gradient(145deg, #061426, #0a2745); */
}
.section-head {
  max-width: 790px;
  margin-bottom: 44px;
}
.kicker {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 12px 0 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.section-dark .section-head p {
  color: #aec2d7;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(6, 30, 61, 0.06);
}
.stat-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 18px;
}
.stat-card strong {
  font-size: 18px;
  display: block;
  margin-bottom: 7px;
}
.stat-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: flow;
}
.flow-card {
  counter-increment: flow;
  position: relative;
  min-height: 235px;
  padding: 24px;
  border-radius: 20px;
  /* background: rgba(255, 255, 255, 0.07); */
  border: 1px solid var(--line2);
  overflow: hidden;
}
.flow-card::before {
  content: counter(flow, decimal-leading-zero);
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    rgba(46, 120, 255, 0.32),
    rgba(43, 212, 207, 0.18)
  );
  color: #bdeef2;
  font-weight: 900;
  margin-bottom: 34px;
}
.flow-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
}
.flow-card p {
  color: #a9bfd3;
  font-size: 14px;
  margin: 0;
}
.flow-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  right: -40px;
  bottom: -40px;
  /* background: rgba(43, 212, 207, 0.06); */
}

.logic-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 34px;
  align-items: start;
}
.logic-panel,
.guard-panel {
  border: 1px solid var(--line2);
  border-radius: var(--radius-xl);
  /* background: var(--bg); */
  padding: 30px;
  box-shadow: var(--shadow);
}
.logic-panel h3,
.guard-panel h3 {
  margin: 0 0 7px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.logic-panel > p,
.guard-panel > p {
  color: var(--muted);
  margin: 0 0 24px;
}
.rule-list {
  display: grid;
  gap: 12px;
}
.rule-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--dark3);
}
.rule-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--blue);
  border: 1px solid var(--line);
  font-weight: 900;
}
.rule-item strong {
  display: block;
  margin-bottom: 3px;
}
.rule-item span {
  color: var(--muted);
  font-size: 13px;
}

.match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--line);
}
.match-table th,
.match-table td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.match-table th {
  background: var(--ink);
    color: var(--primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.match-table tr:last-child td {
  border-bottom: 0;
}
.must {
  color: #0b8d68;
  font-weight: 850;
}
.score {
  color: #8b63e8;
  font-weight: 850;
}
.block {
  color: #d94a55;
  font-weight: 850;
}

.formula {
  margin-top: 18px;
  border-radius: 16px;
  padding: 18px;
  background: #071629;
  color: #dbeaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
}
.formula b {
  color: #79e1dc;
}

.calculator-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.calc-form,
.calc-result {
  border-radius: var(--radius-xl);
  padding: 28px;
}
.calc-form {
  /* background: var(--bg); */
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
}
.calc-form h3,
.calc-result h3 {
  margin: 0 0 8px;
  font-size: 25px;
}
.calc-form p {
  margin: 0 0 20px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 850;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid #ccd9e7;
  border-radius: 11px;
  padding: 0 12px;
  color: var(--soft);
  background: var(--card);
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 120, 255, 0.12);
}
.calc-result {
  color: white;
  /* background: linear-gradient(145deg, #07182d, #0d3556); */
  border: 1px solid var(--line2);
  position: relative;
  overflow: hidden;
}
.calc-result::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(43, 212, 207, 0.2), transparent 68%);
}
.result-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(30, 201, 151, 0.14);
  color: #8af4d5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 23px;
}
.result-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.result-box {
  padding: 17px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.result-box small {
  color: #9fb8cf;
  display: block;
  margin-bottom: 5px;
}
.result-box strong {
  font-size: 24px;
}
.result-box.highlight {
  grid-column: 1 / -1;
  background: rgba(43, 212, 207, 0.1);
  border-color: rgba(43, 212, 207, 0.25);
}
.result-box.highlight strong {
  font-size: 38px;
  color: #8af4d5;
}
.decision-note {
  position: relative;
  z-index: 1;
  color: #bed1e3;
  font-size: 13px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mode-card {
  border-radius: 22px;
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(6, 30, 61, 0.07);
}
.mode-card.featured {
  border-color: rgba(46, 120, 255, 0.38);
  box-shadow: 0 24px 65px rgba(46, 120, 255, 0.14);
}
.mode-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  /* background: var(--dark2); */
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.mode-card h3 {
  margin: 0 0 8px;
}
.mode-card p {
  color: var(--muted);
  font-size: 14px;
}
.mode-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.mode-list span {
  font-size: 13px;
  color: var(--primary);
}
.mode-list span::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.arch-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  /* background: rgba(255, 255, 255, 0.06); */
}
.arch-card .arch-icon {
  font-size: 25px;
  margin-bottom: 13px;
  display: block;
}
.arch-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
}
.arch-card p {
  margin: 0;
  color: #a9bfd3;
  font-size: 13px;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
}
.audit-list {
  display: grid;
  gap: 12px;
}
.audit-item {
  padding: 17px;
  border-radius: 15px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  background: var(--bg);
}
.audit-item .a-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--dark2);
}
.audit-item strong {
  display: block;
}
.audit-item span {
  color: var(--muted);
  font-size: 13px;
}
.log-card {
  background: #071629;
  color: #d9e8f8;
  padding: 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  border: 1px solid var(--line2);
}
.log-head {
  display: flex;
  justify-content: space-between;
  color: #8daac6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 13px;
  margin-bottom: 15px;
}
.log-row {
  display: grid;
  grid-template-columns: 84px 82px 1fr;
  gap: 10px;
  padding: 7px 0;
}
.log-time {
  color: #6f8dab;
}
.log-ok {
  color: #73e9c5;
}
.log-ai {
  color: #ad9cff;
}
.log-warn {
  color: #ffd07a;
}
.log-info {
  color: #75b4ff;
}

.faq {
  display: grid;
  gap: 12px;
}
details {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg);
  padding: 0 18px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 850;
  padding: 18px 36px 18px 0;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 3px;
  top: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 20px;
}
details[open] summary::after {
  content: "−";
}
details p {
  color: var(--muted);
  margin: 0;
  padding: 0 32px 18px 0;
}

.cta {
      padding: 34px;
    border-radius: 30px;
    /* background: radial-gradient(circle at 85% 10%, rgba(43, 212, 207, 0.2), transparent 30%), linear-gradient(135deg, #071629, #0b3152); */
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    /* box-shadow: 0 28px 80px rgba(4, 29, 61, 0.22); */
    border: 1px solid var(--line2);
}
.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
}
.cta p {
  margin: 0;
  color: #b6cbe0;
  max-width: 700px;
}
.cta .btn {
  flex: 0 0 auto;
}

footer {
  padding: 38px 0;
  background: #03101f;
  color: #9db2c8;
  font-size: 13px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note {
  max-width: 790px;
}

.notice {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff8e8;
  border: 1px solid #f3daa2;
  color: #70501e;
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .logic-grid,
  .calculator-wrap,
  .audit-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
  .modes,
  .architecture {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 70px;
  }
}

@media (max-width: 640px) {
  .topbar {
    font-size: 11px;
  }
  .nav-inner {
    min-height: 64px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .hero {
    padding: 54px 0 58px;
  }
  h1 {
    font-size: 42px;
  }
  .hero-copy {
    font-size: 16px;
  }
  section {
    padding: 64px 0;
  }
  .stat-grid,
  .workflow,
  .modes,
  .architecture,
  .form-grid,
  .result-main {
    grid-template-columns: 1fr;
  }
  .match-row {
    grid-template-columns: 1fr;
  }
  .flow-line {
    grid-template-columns: 1fr;
  }
  .arrow {
    transform: rotate(90deg);
    margin: auto;
  }
  .logic-panel,
  .guard-panel,
  .calc-form,
  .calc-result {
    padding: 21px;
  }
  .result-box.highlight {
    grid-column: auto;
  }
  .cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px;
  }
  .cta .btn {
    width: 100%;
  }
  .match-table {
    font-size: 11px;
  }
  .match-table th,
  .match-table td {
    padding: 9px 7px;
  }
  .log-row {
    grid-template-columns: 1fr;
    gap: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
  }
}
