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

:root {
  --bg:        #0b0f14;
  --bg-alt:    #111820;
  --surface:   #1a2230;
  --border:    #243040;
  --text:      #c8d0da;
  --text-dim:  #7a8a9e;
  --heading:   #e8ecf1;
  --accent:    #3b8beb;
  --accent-h:  #5aa3f5;
  --white:     #f0f4f8;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --max-w:     1100px;
  --radius:    6px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
}

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 139, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 720px; }

.hero-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #60b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-h);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 139, 235, 0.25);
}

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

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 139, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

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

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.stat {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text);
}

.about-text p:first-child {
  font-size: 1.1rem;
}

.approach-list {
  list-style: none;
  margin-top: 32px;
}

.approach-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.approach-list li:last-child { border-bottom: none; }

.check {
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.about-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.expertise-list {
  list-style: none;
}

.expertise-list li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expertise-list li:last-child { border-bottom: none; }

.expertise-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(59, 139, 235, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-methods {
  list-style: none;
  margin-bottom: 32px;
}

.contact-methods li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-methods li:last-child { border-bottom: none; }

.contact-methods .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  min-width: 60px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--accent-h);
  box-shadow: 0 8px 24px rgba(59, 139, 235, 0.25);
}

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--white); }

/* ===== Page Headers (inner pages) ===== */
.page-header {
  padding: 140px 0 60px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ===== Services detail (services page) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-detail:last-child { border-bottom: none; }

.service-detail-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.service-detail h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-detail p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.service-detail ul {
  list-style: none;
  margin-top: 8px;
}

.service-detail ul li {
  padding: 6px 0;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-detail ul li::before {
  content: '\2013';
  color: var(--accent);
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after { display: none; }

  .hero { min-height: auto; padding: 120px 0 80px; }

  .about-content,
  .contact-layout,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; justify-content: center; }

  .section { padding: 60px 0; }
  .page-header { padding: 100px 0 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
