/* ========= Reset & Base ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080e1c;
  --bg-2: #0e1828;
  --bg-3: #131f35;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59,130,246,0.18);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(59,130,246,0.35);
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-blue: 0 0 40px rgba(59,130,246,0.12);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ========= Layout ========= */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }

/* ========= Typography ========= */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
h3 { font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
p { color: var(--text-muted); }

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 36px rgba(59,130,246,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--accent-bright);
  border-color: var(--border-accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* ========= Nav ========= */
.nav {
  position: sticky;
  top: 0;
  background: rgba(8,14,28,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; display: block; }
.logo-img--footer { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--white); }

/* ========= Hero ========= */
.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 36px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 span { color: var(--accent-bright); }
.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 40px;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========= Section Header ========= */
.section-header { margin-bottom: 60px; }
.section-header.centered { text-align: center; }
.section-header .label {
  display: inline-block;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

/* ========= Services ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg-2);
  padding: 40px 36px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--bg-3); }
.service-card.featured { background: var(--bg-3); }
.service-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
  display: block;
  line-height: 1;
}
.service-card h3 { margin-bottom: 12px; }
.service-card > p { font-size: 0.93rem; margin-bottom: 20px; line-height: 1.7; }
.service-card ul { list-style: none; padding: 0; border-top: 1px solid var(--border); padding-top: 18px; }
.service-card ul li {
  padding: 6px 0 6px 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
  position: relative;
}
.service-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ========= Divider Bar ========= */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.stat {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ========= What We Deliver ========= */
.case-section { background: var(--bg); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.case-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.case-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-blue);
}
.case-card.featured-case {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.case-tag {
  display: inline-block;
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
}
.case-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.case-card > p { font-size: 0.93rem; line-height: 1.7; }

/* ========= About ========= */
.about-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 18px; font-size: 1.03rem; line-height: 1.75; }
.about-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.about-card h4 {
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.about-card ol { list-style: none; padding: 0; counter-reset: steps; }
.about-card ol li {
  counter-increment: steps;
  padding: 14px 0 14px 44px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--border);
}
.about-card ol li:last-child { border-bottom: none; }
.about-card ol li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.about-card ol li strong { color: var(--white); }

/* ========= Expertise ========= */
.expertise-section { background: var(--bg); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.expertise-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.expertise-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.expertise-icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.expertise-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.expertise-card p { font-size: 0.9rem; line-height: 1.7; }

/* ========= Contact ========= */
.contact-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { font-size: 1.03rem; line-height: 1.75; margin-bottom: 28px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-detail span {
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-detail span::before { content: '↳'; color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select { color: var(--text-muted); cursor: pointer; }
.form-group select option { background: var(--bg-3); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-note { font-size: 0.9rem; color: #34d399; font-weight: 600; margin-top: 4px; }

/* ========= Footer ========= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

/* ========= Team ========= */
.team-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.team-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}
.team-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-accent);
  box-shadow: 0 0 40px rgba(59,130,246,0.25);
  display: block;
}
.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.team-title {
  font-size: 0.85rem;
  color: var(--accent-bright);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.team-linkedin { font-size: 0.88rem; padding: 10px 20px; width: 100%; justify-content: center; }
.team-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
}

/* ========= Responsive ========= */
@media (max-width: 900px) {
  .about-grid,
  .contact-wrap,
  .team-card { grid-template-columns: 1fr; gap: 48px; }
  .team-identity { position: static; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 72px; }
  .hero-logo { max-width: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .nav-links li:not(:last-child) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .services-grid { background: none; border: none; gap: 16px; }
  .service-card { border: 1px solid var(--border); border-radius: var(--radius); }
}
