:root {
  --bg: #050b12;
  --bg-2: #0d1722;
  --panel: rgba(17, 25, 35, 0.75);
  --panel-strong: #101d2a;
  --line: rgba(124, 196, 255, 0.18);
  --text: #eaf3ff;
  --muted: #a8bfd6;
  --brand: #7cc4ff;
  --brand-strong: #4ba3ff;
  --accent: #f7b267;
  --accent-soft: rgba(247, 178, 103, 0.12);
  --shadow: rgba(12, 19, 29, 0.6);
  --glow: 0 0 24px rgba(124,196,255,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,196,255,.15), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(93,255,188,.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(247,178,103,.12), transparent 24%),
    linear-gradient(180deg, #050b12 0%, #071019 100%);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(124,196,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 100%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button, input, select { font: inherit; }

.page-shell {
  min-height: 100vh;
  background: rgba(5, 11, 18, 0.72);
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 12, 19, 0.75);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #d7f0ff);
  color: #03131d;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); }

.cta-button, .primary-btn, .secondary-btn, .save-btn, .ghost-btn, .btn-primary, .btn-secondary, .demo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.cta-button, .primary-btn, .save-btn, .btn-primary, .demo-cta {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #07131d;
  box-shadow: 0 10px 30px rgba(124, 196, 255, 0.25);
}

.cta-button {
  padding: 0.9rem 1.3rem;
}

.primary-btn, .save-btn, .btn-primary, .demo-cta {
  padding: 0.9rem 1.4rem;
}

.secondary-btn, .ghost-btn, .btn-secondary {
  border: 1px solid rgba(124,196,255,.3);
  background: rgba(124,196,255,.06);
  color: var(--text);
  padding: 0.9rem 1.4rem;
}

.hero-section {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(247,178,103,.08);
  border: 1px solid rgba(247,178,103,.35);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(124,196,255,.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.glass-card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, rgba(12, 22, 32, 0.9), rgba(7, 14, 20, 0.7));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(4, 10, 17, 0.7);
  padding: 32px;
}

.mini-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.metric-block strong {
  font-size: 2.2rem;
  line-height: 1;
}

.metric-block span {
  color: var(--muted);
}

.showcase-section, .solutions-section, .process-section {
  padding: 60px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading.center {
  justify-content: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-tab {
  background: rgba(124,196,255,.06);
  color: var(--muted);
  border: 1px solid rgba(124,196,255,.2);
  padding: 0.72rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-tab.active {
  background: rgba(124,196,255,.14);
  color: var(--text);
  border-color: rgba(124,196,255,.5);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(13, 23, 34, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 25px rgba(4,8,12,.3);
}

.template-media {
  overflow: hidden;
  height: 270px;
  border-bottom: 1px solid var(--line);
}

.template-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.template-card:hover .template-media img {
  transform: scale(1.05);
}

.template-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.featured-badge {
  display: inline-flex;
  padding: 0.35rem 0.5rem;
  background: rgba(247,178,103,.1);
  border: 1px solid rgba(247,178,103,.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  text-transform: uppercase;
  opacity: 0;
}

.featured-badge.show { opacity: 1; }

.template-price {
  color: var(--brand);
  font-size: 0.76rem;
}

.template-body h3 {
  margin: 14px 0 12px;
  font-size: 1.28rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-list span {
  display: inline-flex;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 0.7rem;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.btn-primary, .btn-secondary {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.solutions-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.solution-card, .process-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 23, 34, 0.7);
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124,196,255,.08);
  border: 1px solid rgba(124,196,255,.2);
  color: var(--brand);
}

.solution-card h3, .process-card h3 {
  margin: 20px 0 10px;
  font-size: 1.3rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.solution-card p, .process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.step {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 12, 19, 0.95);
  padding-top: 24px;
}

.partner-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 25, 35, 0.7);
}

.partner-track {
  display: flex;
  gap: 30px;
  align-items: center;
  animation: marquee 22s linear infinite;
  padding: 18px 0;
  width: max-content;
}

.partner-item {
  min-width: 140px;
  display: grid;
  place-items: center;
  filter: grayscale(1) brightness(0.8);
  opacity: 0.8;
}

.partner-item img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 40px 0 70px;
}

.footer-brand { margin-bottom: 10px; }
.footer-copy {
  color: var(--muted);
  line-height: 1.8;
  max-width: 300px;
}

.site-footer h4 {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.72rem;
}

.site-footer p, .site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.demo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, .78);
  backdrop-filter: blur(6px);
}

.demo-frame-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(88vh, 820px);
  background: rgba(12, 22, 32, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.demo-device {
  background: #02080d;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 640px;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.demo-header span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.close-btn {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.05);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.demo-device {
  background: #02080d;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

#demoFrame {
  width: 100%;
  min-height: 640px;
  max-height: 74vh;
  border: 0;
  background: white;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.demo-cta {
  display: inline-flex;
  margin-top: 18px;
  width: 100%;
}

.hidden { display: none !important; }

.nova-widget {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 90;
}

.nova-toggle {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #07131d;
  box-shadow: 0 14px 28px rgba(124,196,255,.3);
  cursor: pointer;
}

.nova-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  background: rgba(10, 18, 26, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 38px rgba(0,0,0,.38);
}

.nova-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
}

.nova-close {
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
}

.nova-messages {
  max-height: 260px;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nova-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.nova-bubble.ai {
  background: rgba(124,196,255,.08);
  border: 1px solid rgba(124,196,255,.2);
  color: var(--text);
}

.nova-bubble.user {
  background: rgba(247,178,103,.12);
  border: 1px solid rgba(247,178,103,.2);
  color: var(--text);
  align-self: flex-end;
}

.nova-phone-wrap {
  display: flex;
  gap: 8px;
}

.nova-phone {
  flex: 1;
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}

.nova-form {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
}

.nova-form input {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  color: var(--text);
}

.nova-form button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #07131d;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-grid,
  .solutions-grid,
  .process-grid,
  .footer-inner,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    padding: 18px 0;
  }

  .demo-frame-wrap {
    width: min(94vw, 680px);
  }
}
