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

:root {
  --bg:       #17252a;
  --bg2:      #1e3040;
  --teal:     #00bf87;
  --blue:     #03a9f4;
  --text:     #e8f0f4;
  --muted:    #8aacbb;
  --border:   #2a3f4d;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

/* ── Nav ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 37, 42, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo img { height: 36px; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
}

.hero-content { position: relative; max-width: 760px; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

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

.hero .accent { color: var(--teal); }

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

.container { max-width: 900px; margin: 0 auto; }
.container-wide { max-width: 1100px; margin: 0 auto; }

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--blue); }

p + p { margin-top: 1em; }

/* ── About card ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  display: block;
}

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

.service-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: .95rem;
}

.notice {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--muted);
}

/* ── Project / ISME ────────────────────────────────── */
.project-section { background: var(--bg2); }

.screenshot-block {
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.screenshot-block img {
  width: 100%;
  display: block;
}

.screenshot-caption {
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Blog ──────────────────────────────────────────── */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color .2s;
}
.post-card:hover { border-color: var(--teal); }
.post-card h3 { margin-bottom: .25rem; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.post-excerpt { font-size: .95rem; color: var(--muted); }

/* ── Article ───────────────────────────────────────── */
.article-header { padding: 4rem 2rem 2rem; }
.article-header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; margin-bottom: .5rem; }
.article-meta { color: var(--muted); font-size: .85rem; }

.article-body { padding: 0 2rem 5rem; }
.article-body .container { max-width: 760px; }
.article-body p { margin-bottom: 1em; }
.article-body blockquote {
  border-left: 3px solid var(--teal);
  margin: 1.5em 0;
  padding: .75em 1.25em;
  background: var(--bg2);
  color: var(--muted);
  font-style: italic;
}
.article-body blockquote cite { display: block; margin-top: .5em; font-size: .85rem; }

/* ── Partners ──────────────────────────────────────── */
.partner-item { margin-bottom: 2rem; }
.partner-item h3 { font-size: 1.1rem; margin-bottom: .35rem; }

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