/* ===== SKR Apps Logic — shared design system ===== */
:root {
  --bg: #0a0f1e;
  --bg-soft: #0e1528;
  --card: #121b33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf5;
  --muted: #97a0b8;
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #38bdf8;
  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #38bdf8 100%);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent-3); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-left: 10px;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 600 0.78rem/1 inherit;
  font-family: inherit;
  padding: 8px 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: rgba(99, 102, 241, 0.3); color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 20px 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(600px 300px at 80% 0%, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(500px 320px at 50% 100%, rgba(168, 85, 247, 0.16), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: none;
  border-radius: 14px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(99, 102, 241, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* ===== Layout ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin: 0 0 40px; font-size: 1.02rem; }
.center { text-align: center; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  overflow: hidden;
}
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-icon.has-img { background: none; border: none; }

.hero-icon {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  margin: 0 auto 24px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}
.card h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-3);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-3);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .f-emoji { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.feature h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ===== Prose (legal pages) ===== */
.prose {
  max-width: 820px;
  margin: 50px auto 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.prose h1 {
  font-size: 1.8rem;
  margin: 0 0 0.4em;
  letter-spacing: -0.3px;
}
.prose h2 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.5em;
  color: var(--text);
}
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.prose th { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.prose td a { word-break: break-all; }
.prose .lang-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 6px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .footer-links { margin-bottom: 10px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero { padding: 80px 16px 64px; }
  .prose { padding: 28px 22px; margin: 30px 14px 60px; }
  .site-header { padding: 12px 16px; }
}
