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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1e2530;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --accent: #4ade80;
  --accent2: #22d3ee;
  --text: #e6edf3;
  --muted: #8b949e;
  --muted2: #6e7681;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta .btn {
  padding: 7px 16px;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent2);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #86efac;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* hero stats */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}

.stat-card.teal::before {
  background: var(--accent2);
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── SECTION COMMON ── */
section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.page-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9rem 2rem 1rem;
}

.section-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt>.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  max-width: 620px;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.2rem 0 2.5rem;
}

/* ── CARDS GRID (services / differentials) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: linear-gradient(160deg, var(--surface), var(--surface2) 130%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.8rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateY(-3px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card-icon.teal {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent2);
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

/* diff mini-cards */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: border-color 0.2s;
}

.diff-card:hover {
  border-color: var(--border2);
}

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.diff-card span {
  font-size: 0.85rem;
  color: var(--text);
}

/* ── STACK ── */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stack-group h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── CASES ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
}

.case-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.case-card ul {
  list-style: none;
}

.case-card li {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

.case-card li:first-child {
  border-top: none;
}

/* ── PROCESS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  position: relative;
}

.process-step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

.process-step h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── EXPERIENCE / SOBRE ── */
.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.founder-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: #0d1117;
}

.founder-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.founder-card .role {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.founder-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  text-align: left;
}

.founder-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.founder-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}

.founder-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border2);
}

.exp-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  position: relative;
}

.exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  margin-top: 7px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.exp-dot.teal {
  background: var(--accent2);
}

.exp-dot.gray {
  background: var(--muted2);
}

.exp-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.exp-company {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 3px;
}

.exp-period {
  font-size: 0.74rem;
  color: var(--muted2);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 2px;
}

.exp-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.7rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--muted);
  background: var(--surface2);
}

.tag.green {
  border-color: rgba(74, 222, 128, 0.25);
  color: var(--accent);
  background: rgba(74, 222, 128, 0.05);
}

.tag.cyan {
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--accent2);
  background: rgba(34, 211, 238, 0.05);
}

/* ── CONTACT ── */
.contact-layout {
  max-width: 640px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

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

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted2);
  letter-spacing: 0.04em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 2rem;
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}
