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

:root {
  --accent: #E07850;
  --accent-dark: #C4623A;
  --accent-glow: rgba(224, 120, 80, 0.15);
  --accent-subtle: rgba(224, 120, 80, 0.06);
  --bg: #0A0E14;
  --card: #111820;
  --border: #1A2230;
  --text: #E8ECF0;
  --text-sec: #8A95A5;
  --text-muted: #5A6577;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grid background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--accent-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
}

/* Scan line */
@keyframes scanline {
  0% { top: -5%; }
  100% { top: 105%; }
}
body::after {
  content: '';
  position: fixed; left: 0; right: 0; height: 1px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(224,120,80,0.2), transparent);
  box-shadow: 0 0 20px 5px rgba(224,120,80,0.05);
  animation: scanline 18s linear infinite;
}

.container { position: relative; z-index: 2; }

/* =================== NAV =================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(24px, 5vw, 80px);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(10, 14, 20, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 16px; color: var(--bg);
}
.nav-brand-text { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -0.3px; }
.nav-tagline { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase; margin-top: -1px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-sec); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  color: var(--bg) !important; background: var(--accent);
  padding: 8px 20px; border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--text) !important; }
.nav-cta.active { color: var(--bg) !important; }

/* Mobile nav */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: all 0.3s ease; border-radius: 1px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 20, 0.97); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 20px; font-weight: 500; }
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* =================== SECTIONS =================== */
section { padding: 120px clamp(24px, 5vw, 80px); }
.section-border { border-top: 1px solid var(--border); }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; display: inline-block; width: 40px; height: 1px;
  background: var(--accent);
}

/* =================== PAGE HEADER (inner pages) =================== */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.page-header-glow {
  position: absolute; top: 0; right: 5%; width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -2px; max-width: 800px;
  margin-bottom: 20px;
}
.page-header h1 .highlight { color: var(--accent); text-shadow: 0 0 40px rgba(224,120,80,0.27); }
.page-intro {
  font-size: 18px; line-height: 1.7;
  color: var(--text-sec); max-width: 600px;
}

/* =================== HERO (home page) =================== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; position: relative;
  padding-top: 120px; padding-bottom: 80px;
}
.hero-glow {
  position: absolute; top: 20%; right: 5%; width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 700; line-height: 1.08;
  max-width: 820px; letter-spacing: -2px; margin-bottom: 28px;
}
.hero h1 .highlight { color: var(--accent); text-shadow: 0 0 40px rgba(224,120,80,0.27); }
.hero-sub {
  font-size: 18px; line-height: 1.7; color: var(--text-sec);
  max-width: 580px; margin-bottom: 44px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 80px; flex-wrap: wrap; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 28px;
  font-weight: 700; color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px; margin-left: 10px; }

/* =================== BUTTONS =================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  padding: 14px 28px; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--text); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; border: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* =================== PROBLEM (home) =================== */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1100px;
}
.problem-grid h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.15; letter-spacing: -1px;
}
.problem-text { font-size: 16px; line-height: 1.8; color: var(--text-sec); }
.problem-text p { margin-bottom: 20px; }
.problem-text p:last-child { margin-bottom: 0; }
.problem-callout {
  color: var(--text); font-weight: 500;
  border-left: 2px solid var(--accent); padding-left: 16px;
}

/* =================== SERVICE CARDS (home preview) =================== */
.services-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.15; letter-spacing: -1px;
  margin-bottom: 60px; max-width: 600px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 1100px;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.service-card:hover {
  border-color: rgba(224, 120, 80, 0.27);
  box-shadow: 0 0 40px rgba(224, 120, 80, 0.07);
}
.service-icon {
  font-family: 'JetBrains Mono', monospace; font-size: 28px;
  color: var(--accent); margin-bottom: 20px; opacity: 0.7;
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px;
  font-weight: 600; margin-bottom: 12px; letter-spacing: -0.3px;
}
.service-card p { font-size: 14px; line-height: 1.7; color: var(--text-sec); }

/* =================== CREDIBILITY (home) =================== */
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.tech-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text); padding: 10px 18px;
  border: 1px solid rgba(224, 120, 80, 0.27); border-radius: 6px;
  background: rgba(224, 120, 80, 0.05); letter-spacing: 0.3px;
}
.industry-grid { display: flex; gap: 24px; }
.industry-card {
  flex: 1; padding: 32px 28px; border-radius: 12px;
  border: 1px solid rgba(224, 120, 80, 0.2);
  background: linear-gradient(180deg, rgba(224, 120, 80, 0.04), var(--card));
  text-align: center;
}
.industry-icon { font-size: 28px; color: var(--accent); margin-bottom: 14px; }
.industry-card h4 { font-size: 15px; font-weight: 600; }

/* =================== CTA SECTION =================== */
.cta-section { text-align: center; position: relative; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700; line-height: 1.15; letter-spacing: -1px;
  margin-bottom: 20px; position: relative;
}
.cta-section p {
  font-size: 18px; color: var(--text-sec); margin-bottom: 40px; position: relative;
}
.cta-section .btn-primary { font-size: 16px; padding: 16px 36px; position: relative; }

/* =================== FOOTER =================== */
footer {
  padding: 48px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-sec); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* =================== ABOUT PAGE =================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 80px; max-width: 1100px;
}
.about-text { font-size: 16px; line-height: 1.9; color: var(--text-sec); }
.about-text p { margin-bottom: 24px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text .standout {
  font-size: 20px; line-height: 1.65;
  color: var(--text); font-weight: 500; letter-spacing: -0.3px;
}

.credentials-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
  height: fit-content; position: sticky; top: 100px;
}
.credentials-card-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text-muted); letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 28px;
}
.credential-item {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.credential-item:last-child { border-bottom: none; padding-bottom: 0; }
.credential-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 6px;
}
.credential-value { font-size: 13px; color: var(--text); line-height: 1.6; }

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; max-width: 1100px;
}
.why-grid h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; line-height: 1.2; letter-spacing: -1px;
}
.why-text { font-size: 16px; line-height: 1.9; color: var(--text-sec); }
.why-text p { margin-bottom: 20px; }
.why-text p:last-child { margin-bottom: 0; }
.why-callout {
  color: var(--text); font-weight: 500;
  border-left: 2px solid var(--accent); padding-left: 16px;
  font-style: italic;
}

.approach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 1100px;
}
.approach-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
  transition: border-color 0.3s;
}
.approach-card:hover { border-color: rgba(224, 120, 80, 0.27); }
.approach-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.approach-card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px;
  font-weight: 600; margin-bottom: 12px; letter-spacing: -0.3px;
}
.approach-card p { font-size: 14px; line-height: 1.7; color: var(--text-sec); }

/* =================== SERVICES PAGE =================== */
.services-intro { font-size: 17px; line-height: 1.8; color: var(--text-sec); max-width: 680px; margin-bottom: 0; }

.service-entry {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 40px; padding: 56px 0;
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
}
.service-entry:last-child { border-bottom: none; }
.service-num {
  font-family: 'JetBrains Mono', monospace; font-size: 24px;
  font-weight: 700; color: var(--accent); opacity: 0.35;
  padding-top: 6px; letter-spacing: -1px;
}
.service-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 26px;
  font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px;
}
.service-body > p {
  font-size: 15px; line-height: 1.85; color: var(--text-sec);
  margin-bottom: 16px; max-width: 700px;
}
.service-body > p:last-of-type { margin-bottom: 24px; }
.service-clients {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px;
  background: var(--card); border-radius: 8px;
  border: 1px solid var(--border);
  max-width: 700px;
}
.service-clients-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  white-space: nowrap; padding-top: 2px; flex-shrink: 0;
}
.service-clients-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* =================== CONTACT PAGE =================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 80px; max-width: 1100px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-sec); margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--text);
  transition: border-color 0.2s; outline: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(224, 120, 80, 0.5); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 8px; }

.contact-aside { padding-top: 8px; }
.contact-aside h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 16px;
  font-weight: 600; margin-bottom: 32px; letter-spacing: -0.3px;
}
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.contact-detail-icon {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--accent); width: 20px; margin-top: 2px; flex-shrink: 0;
}
.contact-detail-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-detail-value { font-size: 14px; color: var(--text-sec); line-height: 1.5; }
.contact-detail-value a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--accent); }

.contact-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 32px 0;
}

.hidden { display: none; }

/* =================== ANIMATIONS =================== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }
.fade-in.d5 { transition-delay: 0.5s; }

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  section { padding: 80px clamp(20px, 5vw, 40px); }
  .page-header { padding-top: 120px; padding-bottom: 60px; }
  .page-header h1 { letter-spacing: -1px; }

  /* Home */
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; margin-top: 48px; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .industry-grid { flex-direction: column; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .credentials-card { position: static; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .approach-grid { grid-template-columns: 1fr; }

  /* Services */
  .service-entry { grid-template-columns: 1fr; gap: 12px; }
  .service-num { font-size: 18px; opacity: 0.5; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  footer { flex-direction: column; align-items: flex-start; }
}
