/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f17;
  --surface: #15151f;
  --border: rgba(255,255,255,0.08);
  --text: #f5f5f7;
  --text-muted: #9b9bab;
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --radius: 16px;
  --max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 100px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: all .25s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(99,102,241,.5); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all .3s ease;
}
.nav.scrolled {
  background: rgba(10,10,15,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--accent); font-size: 18px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent-3); margin-bottom: 20px;
}
.hero-content { max-width: 720px; }
.hero-content h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 20px; color: var(--text-muted); margin: 24px 0 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.25), transparent 70%);
  filter: blur(80px); z-index: 1;
}

/* ===== Stats ===== */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat-num { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-top: 8px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.lead { font-size: 20px; line-height: 1.7; color: var(--text-muted); }
.about-cards { display: grid; gap: 20px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s;
}
.about-card:hover { border-color: var(--accent); }
.about-icon { font-size: 28px; margin-bottom: 12px; }
.about-card h3 { font-size: 19px; margin-bottom: 8px; }
.about-card p { color: var(--text-muted); font-size: 15px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; transition: all .3s;
}
.service:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-num { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--text-muted); font-size: 15px; }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all .3s; position: relative; overflow: hidden;
}
.portfolio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.portfolio-card:hover::before { transform: scaleX(1); }
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-3);
  background: rgba(34,211,238,.1); padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}
.portfolio-card h3 { font-size: 21px; margin-bottom: 8px; }
.portfolio-card p { color: var(--text-muted); font-size: 15px; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; transition: border-color .25s;
}
.team-card:hover { border-color: var(--accent); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}
.team-card h3 { font-size: 18px; }
.team-role { color: var(--accent-3); font-size: 14px; font-weight: 600; margin: 4px 0 12px; }
.team-card p { color: var(--text-muted); font-size: 14px; }

/* ===== Contact ===== */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 56px;
}
.contact-info h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 16px; }
.contact-info p { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.contact-row a { color: var(--accent-3); font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row input, .form-row textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { resize: vertical; }
.form-msg { font-size: 14px; color: var(--accent-3); text-align: center; min-height: 20px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 280px;
    background: var(--bg-alt); flex-direction: column; justify-content: center;
    align-items: center; gap: 28px; transition: right .3s; border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { padding: 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
}
