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

:root {
  --bg:        #f7fafc;
  --bg2:       #eef3f9;
  --card:      #ffffff;
  --border:    #d9e2ee;
  --text:      #0f172a;
  --sub:       #64748b;
  --purple:    #d97706;
  --purple-l:  #fef3c7;
  --green:     #16a34a;
  --green-l:   #dcfce7;
  --blue:      #2563eb;
  --blue-l:    #dbeafe;
  --shadow:    0 8px 24px rgba(15,23,42,.08);
  --shadow-h:  0 14px 36px rgba(15,23,42,.14);
  --radius:    14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0f172a;
    --bg2:      #101a2f;
    --card:     #182235;
    --border:   #334155;
    --text:     #f1f5f9;
    --sub:      #94a3b8;
    --purple:   #f59e0b;
    --purple-l: #292106;
    --green:    #4ade80;
    --green-l:  #123522;
    --blue:     #60a5fa;
    --blue-l:   #1e3a8a;
    --shadow:   0 8px 24px rgba(0,0,0,.4);
    --shadow-h: 0 14px 36px rgba(0,0,0,.58);
  }
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 480px at -10% -10%, rgba(217,119,6,.09), transparent 60%),
    radial-gradient(1100px 520px at 110% 110%, rgba(22,163,74,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Sora", "Manrope", sans-serif; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 2rem;
  background: rgba(248, 250, 252, .88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: dark) {
  nav { background: rgba(15, 23, 42, .82); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -.02em;
  text-decoration: none;
}
.nav-logo .logo-open { color: var(--purple); }
.nav-logo .logo-web  { color: var(--text); }
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; }

.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { color: var(--sub); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn-gh {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text) !important;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.btn-gh:hover { box-shadow: var(--shadow-h); text-decoration: none !important; }

/* breadcrumb nav (privacy pages) */
.nav-left { display: flex; align-items: center; gap: 1rem; }
.nav-sep  { color: var(--border); font-size: 1.2rem; }
.nav-page { font-size: .9rem; color: var(--sub); font-weight: 500; }

.lang-switch {
  font-size: .8rem;
  font-weight: 600;
  color: var(--sub) !important;
  padding: .3rem .6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  text-decoration: none;
}
.lang-switch:hover { color: var(--text) !important; text-decoration: none !important; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero h1 span.purple { color: var(--purple); }
.hero h1 span.green  { color: var(--green); }
.hero p {
  font-size: 1.1rem;
  color: var(--sub);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: .7rem 1.6rem;
  background: linear-gradient(135deg, var(--purple), #ea7c1a);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(217,119,6,.32);
  transition: opacity .15s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); text-decoration: none !important; }

.btn-secondary {
  padding: .7rem 1.6rem;
  background: var(--card);
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-secondary:hover { box-shadow: var(--shadow-h); transform: translateY(-1px); text-decoration: none !important; }

/* ── Code block ──────────────────────────────────────────────────── */
.code-block {
  max-width: 620px;
  margin: 2.5rem auto 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow);
}
.code-block-header {
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  color: var(--sub);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.code-block pre {
  padding: 1rem 1.2rem;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: .82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.code-block pre .cmd  { color: var(--purple); font-weight: 600; }
.code-block pre .cmnt { color: var(--sub); }

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.bg-alt { background: var(--bg2); }

.section-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: .75rem;
}
h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-sub {
  text-align: center;
  color: var(--sub);
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}

/* ── App cards ───────────────────────────────────────────────────── */
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
}
.app-card.purple {
  background: linear-gradient(170deg, #ece8ff, var(--card) 42%);
  border-color: rgba(124,58,237,.35);
}
.app-card.green {
  background: linear-gradient(170deg, var(--green-l), var(--card) 42%);
  border-color: rgba(22,163,74,.35);
}
@media (prefers-color-scheme: dark) {
  .app-card.purple { background: linear-gradient(170deg, #2f2259, var(--card) 42%); }
}
.app-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.app-card-header img { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.app-card-header h3 { font-size: 1.1rem; font-weight: 700; }
.app-card-header p  { font-size: .82rem; color: var(--sub); margin-top: .1rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--sub);
}
.feature-list li::before {
  content: "✓";
  font-weight: 700;
  font-size: .8rem;
  margin-top: .1rem;
  flex-shrink: 0;
}
.app-card.purple .feature-list li::before { color: #7c3aed; }
.app-card.green  .feature-list li::before { color: var(--green); }
@media (prefers-color-scheme: dark) {
  .app-card.purple .feature-list li::before { color: #a78bfa; }
}

/* ── Clients ─────────────────────────────────────────────────────── */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.client-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.client-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-h);
}
.client-icon { font-size: 2rem; margin-bottom: .6rem; }
.client-icon-img { width: 2.5rem; height: 2.5rem; object-fit: contain; margin-bottom: .6rem; }
.client-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.client-card p  { font-size: .8rem; color: var(--sub); }

/* ── Hosting ─────────────────────────────────────────────────────── */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.hosting-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hosting-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-h);
}
.hosting-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .7rem;
  border: 1px solid var(--border);
  color: var(--sub);
  background: var(--bg2);
}
.hosting-card h3 { font-size: 1rem; margin-bottom: .45rem; font-weight: 800; }
.hosting-card p  { color: var(--sub); font-size: .88rem; margin-bottom: .75rem; }
.company-logo {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  display: block;
  margin-bottom: .8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  object-fit: contain;
  padding: 6px;
}
.hosting-card.primary {
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(170deg, var(--blue-l), var(--card) 40%);
}
.hosting-card.self {
  border-color: rgba(22,163,74,.35);
  background: linear-gradient(170deg, var(--green-l), var(--card) 40%);
}

/* ── Quick start ─────────────────────────────────────────────────── */
.qs-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.qs-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.qs-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.qs-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.qs-step h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.qs-step p  { font-size: .83rem; color: var(--sub); }
.qs-step code {
  font-family: monospace;
  background: var(--bg2);
  padding: .15rem .4rem;
  border-radius: 5px;
  font-size: .8rem;
  border: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: .83rem;
  color: var(--sub);
}
footer a { color: var(--sub); }
footer a:hover { color: var(--text); }

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero,
.app-card,
.client-card,
.hosting-card,
.qs-step { animation: fadeUp .5s ease both; }
.app-card:nth-child(2),
.client-card:nth-child(2),
.qs-step:nth-child(2) { animation-delay: .06s; }
.client-card:nth-child(3),
.qs-step:nth-child(3) { animation-delay: .12s; }
.client-card:nth-child(4),
.qs-step:nth-child(4) { animation-delay: .18s; }

/* ── Privacy page ────────────────────────────────────────────────── */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.page-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .75rem;
}
.updated {
  font-size: .85rem;
  color: var(--sub);
  margin-bottom: 2.5rem;
}
.content h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .5rem;
  text-align: left;
}
.content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.25rem 0 .6rem;
  text-align: left;
  letter-spacing: 0;
}
.content p { margin-bottom: .9rem; }
.content p:last-child { margin-bottom: 0; }
.content ul { padding-left: 1.4rem; margin-bottom: .9rem; }
.content ul li { margin-bottom: .35rem; }
.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  nav {
    padding: .75rem 1rem;
    flex-wrap: wrap;
    row-gap: .55rem;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .8rem;
  }
}
