@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800&display=swap');

:root {
  --bg: #0a0c10;
  --surface: #161b22;
  --surface-hover: #1c2128;
  --accent: #2f81f7;
  --accent-glow: rgba(47, 129, 247, 0.15);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --border: #30363d;
  --border-hover: #444c56;
  --success: #3fb950;
  --error: #f85149;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --container-max: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Gradients */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 0% 0%, rgba(47, 129, 247, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(63, 185, 80, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Header / Navigation */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: min(var(--container-max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

main {
  flex: 1;
  width: min(var(--container-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 100px;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero.compact {
  margin-bottom: 40px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Layout Utilities */
.centered-content {
  max-width: 600px;
  margin: 0 auto;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Responsive Grids */
@media (max-width: 900px) {
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.card.interactive:hover {
  border-color: var(--accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.card:hover .card-icon {
  border-color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.card .card-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: #478be6;
  box-shadow: 0 0 20px rgba(47, 129, 247, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(47, 129, 247, 0.05);
  color: var(--accent);
}

/* Steps */
.steps-container {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.steps-container h2 {
  font-family: 'Outfit', sans-serif;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Settings List */
.rustdesk-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rd-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.rd-row:last-child { border-bottom: none; }
.rd-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rd-value {
  font-family: 'Inter', monospace;
  font-size: 1rem;
  color: var(--text-main);
  word-break: break-all;
}
.rd-value.empty { color: var(--border); font-style: italic; }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  main { padding: 40px 0 60px; }
  h1 { font-size: 2.2rem; }
  .steps-container { padding: 24px; }
}