*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f7fa;
  color: #1f2933;
}

body {
  line-height: 1.6;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  background-color: #0b1f3b;
  color: #e5ecff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e4b97, #0b1f3b);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.8rem;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 12px;
}

.nav-link {
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  opacity: 0.8;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.nav-link-active {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

/* Hero */

.hero {
  padding: 40px 0 32px;
  background: radial-gradient(circle at top left, #1e88e5 0, #0b1f3b 40%, #050a16 100%);
  color: #f5f7ff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.hero-copy p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ffc857, #ff9f1c);
  color: #1f1305;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffcf70, #ffb433);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #f5f7ff;
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 260px;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 14px 30px rgba(3, 6, 20, 0.6);
}

.device-screen {
  border-radius: 18px;
  background-color: #111827;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.device-screen-header {
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e5e7eb;
  background: linear-gradient(90deg, #1f2937, #111827);
}

.device-screen-body {
  padding: 12px 12px 20px;
  color: #e5e7eb;
}

.device-line {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

.device-line-faded {
  opacity: 0.7;
  font-style: italic;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.section-intro {
  margin: 0 0 24px;
  max-width: 720px;
  color: #4b5563;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background-color: #f9fafb;
  border-radius: 14px;
  padding: 16px 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-narrow {
  padding-top: 32px;
  padding-bottom: 40px;
}

.section-narrow .container {
  max-width: 800px;
}

.section-narrow h2 {
  margin-top: 22px;
}

/* Footer */

.site-footer {
  background-color: #050a16;
  color: #d1d5db;
  padding-top: 20px;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 12px;
}

.footer-brand {
  font-weight: 600;
  margin: 0 0 4px;
}

.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.footer-link {
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(156, 163, 175, 0.3);
  text-align: center;
  padding: 10px 0 14px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Policy */

.policy-updated {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive */

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

  .hero-art {
    order: -1;
  }

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

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 28px;
  }
}
