/* Xoppa.com — Single-page scroll site */
:root {
  --bg-dark: #0d1117;
  --bg-section: #161b22;
  --bg-card: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --border: #30363d;
  --silver: #c0c8d0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Navigation ─────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .brand {
  font-size: 1.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--silver);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

nav .brand img {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

nav a:hover { color: var(--text-primary); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(88,166,255,0.06) 1px, transparent 0),
    var(--bg-dark);
  background-size: 24px 24px, 100%;
}

.hero .logo-wrapper {
  margin-bottom: 2rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.logo-brand img {
  width: 80px;
  height: auto;
}

.logo-text {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--silver);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.cta:hover { background: var(--accent-hover); }

/* ── Sections ───────────────────────────── */
section {
  padding: 5rem 2rem;
}

section:nth-child(even) {
  background:
    radial-gradient(circle at 1px 1px, rgba(88,166,255,0.04) 1px, transparent 0),
    var(--bg-section);
  background-size: 32px 32px, 100%;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

section .subtitle {
  color: var(--accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

/* ── Services grid ──────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.85);
  transition: background 0.3s;
}

.service-card:hover .card-overlay {
  background: rgba(13, 17, 23, 0.7);
}

.card-content {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card .icon {
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-card .icon svg {
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Why Xoppa ──────────────────────────── */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.reason {
  text-align: center;
  padding: 1.5rem;
}

.reason .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.reason .label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Contact ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info p,
.contact-info a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 2;
  display: block;
}

.contact-info a:hover { color: var(--accent); }

/* ── Footer ─────────────────────────────── */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* ── Mobile ─────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 0.5rem; }

  .nav-toggle { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  nav ul.open { display: flex; }

  section { padding: 3rem 1rem; }
  .hero { padding: 5rem 1rem 3rem; }
  .logo-brand { flex-direction: column; gap: 0.5rem; }
  .logo-text { font-size: 2.2rem; letter-spacing: 0.15em; }
  .services-grid { grid-template-columns: 1fr; }
}
