:root {
  --bg:     #f5f7fa;
  --bg2:    #ffffff;
  --bg3:    #eef0f5;
  --border: #d8dce8;
  --accent: #1a6fd4;
  --accent2: #5a3fc0;
  --text:   #1a1d2e;
  --text2:  #4a4f6a;
  --text3:  #9098b8;
  --green:  #1a9e44;
  --radius: 12px;
  --maxw:   960px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

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

/* ── Nav ───────────────────────────────────────── */
nav {
  background: rgba(245,247,250,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}
.nav-logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

/* ── Page wrapper ──────────────────────────────── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }

/* ── Hero ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(74,158,255,.12);
  color: var(--accent);
  border: 1px solid rgba(74,158,255,.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 19px;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #3a8fe8; text-decoration: none; color: #fff; }
.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg2); text-decoration: none; }

/* ── Feature grid ──────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 64px 0;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s;
}
.feature-card:hover { border-color: rgba(74,158,255,.4); }
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Section headings ──────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

/* ── About strip ───────────────────────────────── */
.about-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}
.about-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.about-inner p {
  color: var(--text2);
  font-size: 16px;
  max-width: 720px;
  margin-bottom: 16px;
}

/* ── Projects list ─────────────────────────────── */
.project-list { display: flex; flex-direction: column; gap: 20px; }
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: border-color .15s;
}
.project-card:hover { border-color: rgba(74,158,255,.4); text-decoration: none; }
.project-card .proj-icon {
  font-size: 36px;
  min-width: 48px;
  text-align: center;
}
.project-card h3 { font-size: 18px; margin-bottom: 6px; }
.project-card p { font-size: 14px; color: var(--text2); }
.project-card .arrow { margin-left: auto; color: var(--text3); font-size: 20px; }

/* ── Project detail ────────────────────────────── */
.project-header {
  padding: 64px 24px 48px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text2); font-size: 14px;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--text); text-decoration: none; }
.project-header h1 {
  font-size: 40px; font-weight: 800; letter-spacing: -1px;
}
.project-header .subtitle { color: var(--text2); font-size: 17px; margin-top: 8px; }

.proj-section { margin-top: 56px; }
.proj-section h2 { font-size: 22px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.proj-section p { color: var(--text2); margin-bottom: 14px; font-size: 15px; }

/* ── Photo grid ────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.photo-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.photo-grid img:hover { transform: scale(1.02); opacity: .9; }

/* ── Specs table ───────────────────────────────── */
.spec-table {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.spec-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text2); min-width: 160px; font-weight: 500; }
.spec-value { color: var(--text); }

/* ── Support / Privacy ─────────────────────────── */
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; font-size: 17px; color: var(--text); }
.prose p { color: var(--text2); margin-bottom: 14px; font-size: 15px; }
.prose ul { color: var(--text2); font-size: 15px; padding-left: 24px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.contact-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 32px;
}
.contact-box p { margin: 0; }

/* ── Footer ────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}
footer a { color: var(--text2); margin: 0 12px; }
footer a:hover { color: var(--text); }

/* ── Lightbox ──────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 32px; cursor: pointer;
  background: none; border: none; line-height: 1;
}
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 28px;
  padding: 12px 16px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 13px;
}
