:root {
  --bg-page: #f3f6fb;
  --bg-main: #ffffff;
  --bg-header: #102c3a;
  --bg-footer: #08131d;
  --bg-hero: #102c3a;
  --bg-card: #ffffff;
  --bg-card-soft: #f8fbff;

  --text: #0f172a;
  --text-inverse: #f8fafc;
  --muted: #64748b;
  --muted-inverse: #cbd5e1;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #0f3a52;
  --border: #d9e4f0;
  --border-strong: #1eb8ff;

  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #102c3a 0%, #0d2633 100%);
  border-bottom: 1px solid rgba(30, 184, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  color: var(--text-inverse);
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(0, 215, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 40;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.menu-toggle.is-open {
  opacity: 0;
  pointer-events: none;
}

.menu-close {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.menu-backdrop {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted-inverse);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.site-nav .nav-link-cta {
  border: 1px solid rgba(166, 216, 176, 0.55);
  background: rgba(166, 216, 176, 0.12);
  color: #d9f7df;
  font-weight: 700;
}

.site-nav .nav-link-login {
  border: 1px solid rgba(30, 184, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-inverse);
}

main {
  background: var(--bg-main);
  padding: 2rem 0 3.5rem;
}

.hero,
.page-section,
.features,
.platforms,
.trial {
  padding: 1.5rem 0;
}

.hero .container,
.trial .container {
  display: grid;
  gap: 1.4rem;
}

.hero .container {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.hero-copy {
  padding: 1.8rem;
  background: linear-gradient(180deg, #0f3a52 0%, #102c3a 100%);
  color: var(--text-inverse);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.page-section h1,
.features h2,
.platforms h2,
.trial h2,
.card h2,
.card h3 {
  color: var(--accent);
}

.hero-copy h1 {
  color: var(--text-inverse);
}

.hero-copy p,
.hero-copy .hero-note {
  color: var(--muted-inverse);
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.hero-note,
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
  background: rgba(31, 34, 39, 0.8);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: #eef4fb;
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #e4edf8;
}

.cards-grid,
.section-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 4px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.trial-inner {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #08131d 0%, #050b11 100%);
  border-top: 1px solid rgba(30, 184, 255, 0.10);
  color: var(--text-inverse);
}

.footer-inner {
  padding: 2rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-inner > div {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-inner h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-inverse);
}

.footer-inner p,
.footer-inner li,
.footer-inner a {
  color: var(--muted-inverse);
}

.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-inner a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 0.9rem 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-inverse);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero .container,
  .trial-inner {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1rem));
  }

  main {
    padding: 1rem 0 2rem;
  }

  .header-inner {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 1rem;
    min-width: 0;
    position: relative;
    z-index: 50;
    margin-left: 16px;
  }

  .brand-logo-wrap {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: 16px;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    padding: 6rem 1.25rem 1.25rem;
    background: rgba(8, 19, 29, 0.98);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
    flex-wrap: nowrap;

  }

  body.menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-close {
    display: inline-flex;
    z-index: 60;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero,
  .page-section,
  .features,
  .platforms,
  .trial {
    padding: 1rem 0;
  }

  .hero .container,
  .trial .container {
    gap: 1rem;
  }

  .hero-copy,
  .hero-card,
  .card,
  .trial-inner {
    padding: 1rem;
  }

  .cards-grid,
  .section-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .trial-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    margin-top:4px;
  }

  .footer-inner {
    gap: 1.25rem;
    padding: 1.5rem 0 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-inner > div {
    min-width: 100%;
    padding-right: 0;
    align-items: center;
  }

  .footer-inner ul {
    align-items: center;
  }

  .footer-inner h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-bottom {
    padding: 0.85rem 0 1rem;
  }
}

@media (max-width: 420px) {
  .hero-copy h1,
  .page-section h1 {
    font-size: 1.65rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
  }
}