:root {
  --bg-deep: #1e2d5a;
  --bg-top: #1e3264;
  --panel: #324678;
  --panel-2: #283d70;
  --accent: #64c8ff;
  --cta: #4682b4;
  --cta-hover: #64a0d2;
  --danger: #c83232;
  --text: #f4f8ff;
  --muted: #96aaca;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #2f4d9a 0%, transparent 35%),
    radial-gradient(circle at 90% 0%, #3f6dc4 0%, transparent 26%),
    linear-gradient(160deg, var(--bg-top) 0%, var(--bg-deep) 62%, #141f46 100%);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.26;
  pointer-events: none;
}

.bg-glow-1 {
  width: 420px;
  height: 420px;
  background: #64c8ff;
  top: -160px;
  right: -100px;
}

.bg-glow-2 {
  width: 320px;
  height: 320px;
  background: #c83232;
  bottom: -120px;
  left: -80px;
}

.site-header,
.hero,
.features,
.steps,
.site-footer {
  width: min(1160px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #b9e7ff);
  box-shadow: 0 0 16px rgba(100, 200, 255, 0.75);
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.btn-nav {
  background: linear-gradient(140deg, var(--cta), var(--cta-hover));
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}

.site-nav a.btn-nav:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.hero {
  padding: 4.2rem 0 2.4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.9px;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.subtext {
  color: #c8d6f1;
  max-width: 48ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  padding: 0.78rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(140deg, var(--cta), var(--cta-hover));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Application Screenshot */
.app-screenshot {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: block;
  margin-top: 1.5rem;
  border: 1px solid rgba(100, 200, 255, 0.3);
  padding: 0;
}

/* Application Window Styles */
.app-window {
  background: linear-gradient(180deg, #3a5b9e 0%, #2d4573 100%);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  margin-top: 1.5rem;
}

.app-header {
  background: linear-gradient(90deg, #5574b8 0%, #4a68a8 100%);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.app-title {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.app-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.window-btn {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  background: transparent;
  user-select: none;
}

.window-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.window-btn.close:hover {
  background: #c83232;
}

.app-container {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.app-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-block {
  margin-bottom: 1rem;
}

.info-label {
  display: block;
  color: #a8b8d8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.info-value {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.info-text {
  color: #b8c4db;
  font-size: 0.95rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8c4db;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #9be86f;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(155, 232, 111, 0.5);
}

.app-right {
  display: flex;
  flex-direction: column;
}

.section-title {
  color: #c9d3e8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.app-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(100, 200, 255, 0.3);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: 0.2s ease;
}

.app-input::placeholder {
  color: #7a8ba3;
}

.app-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.2);
}

.button-group {
  display: flex;
  gap: 0.5rem;
}

.btn-connect {
  flex: 1;
  background: linear-gradient(135deg, #5574b8 0%, #4a68a8 100%);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.btn-connect:hover {
  background: linear-gradient(135deg, #6a84c8 0%, #5a78b8 100%);
  transform: translateY(-1px);
}

.btn-connect:active {
  transform: translateY(0);
}

.arrow {
  font-size: 0.8rem;
}

.btn-lock {
  width: 38px;
  height: auto;
  background: linear-gradient(135deg, #5574b8 0%, #4a68a8 100%);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
}

.btn-lock:hover {
  background: linear-gradient(135deg, #6a84c8 0%, #5a78b8 100%);
  transform: translateY(-1px);
}

.app-footer {
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(100, 200, 255, 0.1);
  font-size: 0.8rem;
  color: #7a8ba3;
  display: flex;
  justify-content: flex-end;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  background: linear-gradient(160deg, rgba(50, 70, 120, 0.9), rgba(31, 47, 89, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
}

.feature p {
  color: #d4def0;
  line-height: 1.55;
}

.steps {
  margin-top: 2.2rem;
  margin-bottom: 3rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(22, 32, 64, 0.7);
}

.steps h2 {
  margin-bottom: 0.8rem;
}

.steps ol {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  color: #dae7ff;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.footer-links {
  margin-top: 0.4rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a + a {
  margin-left: 0.9rem;
}

.legal-main {
  width: min(920px, calc(100% - 2.2rem));
  margin: 0 auto 2rem;
  padding: 2.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(22, 32, 64, 0.74);
}

.legal-meta {
  color: #c8d6f1;
  margin: -0.2rem 0 1.6rem;
}

.legal-section {
  margin-bottom: 1.3rem;
}

.legal-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.legal-section p,
.legal-section li {
  color: #d4def0;
  line-height: 1.7;
}

.legal-section ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.legal-footer {
  margin-top: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .legal-main {
    padding: 1.5rem 1rem;
  }
}
