/* ---------------------------------------------
   SoiLink — Landing page styles
--------------------------------------------- */

:root {
  --ink: #101a2e;
  --ink-soft: #5b6479;
  --paper: #ffffff;
  --paper-alt: #f2f6fd;
  --card: #ffffff;
  --line: #e2e8f4;

  --blue-900: #082e70;
  --blue-700: #0b52c4;
  --blue-600: #0a6cff;
  --blue-500: #2f8dff;
  --blue-100: #e4f0ff;

  --accent-grad: linear-gradient(135deg, #0a6cff 0%, #2f8dff 55%, #7ec4ff 100%);

  --font-display: "Comfortaa", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(10, 60, 150, 0.05), 0 12px 28px -14px rgba(10, 60, 150, 0.22);
  --shadow-pop: 0 24px 60px -20px rgba(10, 60, 150, 0.4);

  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 12px;
}

.eyebrow-light { color: var(--blue-100); }

.section-sub {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(10, 108, 255, 0.55);
}
.btn-primary:hover { background: var(--blue-700); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-220%) skewX(-20deg);
  transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(320%) skewX(-20deg); }

.btn-outline {
  background: transparent;
  border-color: rgba(10, 60, 150, 0.22);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-700); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin-right: auto;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue-600);
  box-shadow: 0 6px 14px -6px rgba(10, 108, 255, 0.55);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); }
.logo-footer .logo-mark { width: 28px; height: 28px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a {
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 0;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 18px auto 30px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.hicon {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--blue-600);
  box-shadow: var(--shadow-card);
  animation: hiconFloat 6.5s ease-in-out infinite;
}
.hicon[data-float="2"] { animation-duration: 8s; animation-delay: -2.4s; }
.hicon[data-float="3"] { animation-duration: 5.4s; animation-delay: -4.2s; }
.hicon svg { width: 20px; height: 20px; }
.hicon-1 { top: 12%; left: 6%; }
.hicon-2 { top: 8%; right: 8%; }
.hicon-3 { top: 42%; left: 3%; }
.hicon-4 { top: 40%; right: 4%; }
.hicon-5 { top: 68%; left: 10%; }
.hicon-6 { top: 66%; right: 11%; }

@keyframes hiconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-11px) rotate(3deg); }
}

@media (max-width: 860px) {
  .hicon { display: none; }
}

/* Scenario frame (browser-like mockup) */
.scenario-frame {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 12px;
  margin: 0 auto 90px;
  max-width: 980px;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 14px;
  overflow-x: auto;
}
.frame-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}
.frame-bar .tab {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 6px;
}
.frame-bar .tab-active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--line);
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 4px;
}

.scenario-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--paper-alt);
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
  border-color: var(--blue-500);
}
.scenario-card.card-gradient:hover { box-shadow: 0 24px 50px -18px rgba(10, 108, 255, 0.55); }

.scenario-card.card-gradient {
  background: var(--accent-grad);
  border: none;
  color: #fff;
}

.scenario-card .cmd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 10px;
  opacity: 0.85;
}
.scenario-card.card-gradient .cmd { opacity: 0.9; }

.scenario-card .cmd-text {
  font-size: 14.5px;
  margin: 0 0 14px;
  color: var(--ink);
}
.scenario-card.card-gradient .cmd-text { color: #fff; }

.scenario-card .cmd-result {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.scenario-card.card-gradient .cmd-result { color: rgba(255,255,255,0.9); }
.scenario-card.card-gradient .cmd-result strong { color: #fff; }

@media (max-width: 780px) {
  .scenario-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--paper-alt);
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  max-width: 640px;
}
.section > .container > .eyebrow { margin-top: 0; }
.section h2 + .section-sub,
.section .eyebrow + h2 { }
.section .section-sub { margin-bottom: 40px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--paper-alt);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.th-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  opacity: 0.75;
}

tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
  transition: background 0.2s ease;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--paper-alt); }
tbody tr:hover td.col-highlight { background: var(--blue-100); }

.product-table td:first-child { font-weight: 600; color: var(--ink); }

.compare-table .col-highlight {
  background: var(--blue-100);
  font-weight: 600;
  color: var(--blue-900);
}
.compare-table thead th.col-highlight { background: var(--blue-600); color: #fff; }

@media (max-width: 700px) {
  .table-wrap { border: none; background: transparent; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  table { min-width: 0; }
  tbody tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 6px 4px;
  }
  tbody td {
    border-bottom: none;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    font-size: 14px;
  }
  tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-soft);
    flex: none;
    width: 42%;
  }
  .compare-table .col-highlight { border-radius: 8px; margin: 4px 8px; }
}

/* ---------- Architecture flow ---------- */
.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}
.arch-step {
  flex: 1 1 200px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.arch-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
  border-color: var(--blue-500);
}
.arch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}
.arch-step:hover .arch-icon {
  transform: scale(1.12) rotate(-8deg);
  background: var(--blue-600);
  color: #fff;
}
.arch-icon svg { width: 20px; height: 20px; }
.arch-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.arch-step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
  font-size: 22px;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .arch-arrow { display: none; }
  .arch-flow { flex-direction: column; }
}

/* ---------- Invest / contact ---------- */
.invest-section {
  background: var(--blue-900);
  color: var(--paper);
}
.invest-section h2 { color: #fff; }

.invest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}

.invest-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16.5px;
  max-width: 520px;
}

.invest-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.invest-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}
.invest-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-100);
  margin-bottom: 4px;
}

.invest-form-wrap {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-pop);
}
.invest-form h3 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 20px;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.form-note {
  min-height: 20px;
  font-size: 13.5px;
  color: var(--blue-700);
  margin: 12px 0 0;
  text-align: center;
}

.form-demo-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .invest-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.logo-footer { font-size: 16px; }

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

.scenario-cards .reveal:nth-child(1) { transition-delay: 0s; }
.scenario-cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.scenario-cards .reveal:nth-child(3) { transition-delay: 0.2s; }

.arch-flow .reveal:nth-child(1) { transition-delay: 0s; }
.arch-flow .reveal:nth-child(3) { transition-delay: 0.12s; }
.arch-flow .reveal:nth-child(5) { transition-delay: 0.24s; }
.arch-flow .reveal:nth-child(7) { transition-delay: 0.36s; }

/* ---------- Trust strip / logo marquee ---------- */
.trust-strip {
  padding: 56px 0 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.trust-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRight 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-list {
  display: flex;
  align-items: center;
  gap: 76px;
  padding: 0 38px;
  margin: 0;
  list-style: none;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  color: var(--ink-soft);
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.trust-badge svg { width: 32px; height: 32px; flex: none; color: var(--blue-600); }
.trust-badge:hover { opacity: 1; color: var(--ink); transform: translateY(-2px); }

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hicon { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-icons { transition: none; }
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
  * {
    scroll-behavior: auto !important;
  }
}
