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

:root {
  --bg:       #252b30;
  --bg-soft:  #2c3438;
  --bg-1:     #353f44;
  --bg-2:     #404c52;
  --fg:       #d0c8b0;
  --fg-dim:   #8ea0a8;
  --green:    #9ec47a;
  --aqua:     #68bca0;
  --blue:     #6db5ba;
  --yellow:   #d4b86a;
  --orange:   #d09060;
  --red:      #d07070;
  --accent:   #6db5ba;
  --accent-2: #9ec47a;
  --border:   #353f44;
  --shadow:   rgba(0,0,0,0.4);
  --radius:   8px;
  --radius-lg: 16px;
  --nav-h:    70px;
  --max-w:    1200px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--aqua); }

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

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--fg);
}

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-accent { color: var(--accent); }
.text-aqua { color: var(--aqua); }
.text-dim { color: var(--fg-dim); }
.text-center { text-align: center; }
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #1e2326;
}
.btn-primary:hover {
  background: var(--aqua);
  border-color: var(--aqua);
  color: #1e2326;
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #1e2326;
}
.btn-outline:hover {
  background: var(--aqua);
  border-color: var(--aqua);
  color: #1e2326;
  transform: translateY(-1px);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(37, 43, 48, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background .3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.02em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo span.accent { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--fg-dim);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--fg); }
.nav-cta { margin-left: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BINARY RAIN CANVAS ===== */
#rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
  filter: blur(0.4px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(109,181,186,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(158,196,122,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,192,128,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,192,128,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-content {
  position: relative;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .8rem;
  color: var(--fg-dim);
  margin-bottom: 1.75rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 580px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--fg-dim);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.hero-scroll svg { opacity: .5; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
}
.stat-label {
  font-size: .85rem;
  color: var(--fg-dim);
  margin-top: .25rem;
}

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  max-width: 560px;
}
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--aqua));
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover {
  border-color: var(--bg-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  background: var(--bg-1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .9rem;
  color: var(--fg-dim);
  line-height: 1.65;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}
.service-card .card-link:hover { color: var(--aqua); gap: .55rem; }

/* ===== WHY US ===== */
.why-us { background: var(--bg-soft); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-features { display: flex; flex-direction: column; gap: 1.5rem; }
.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-feature-icon {
  width: 40px; height: 40px;
  background: var(--bg-1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.why-feature h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.why-feature p {
  font-size: .875rem;
  color: var(--fg-dim);
  line-height: 1.6;
}
.why-visual {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  transition: border-color .2s;
}
.tech-badge:hover { border-color: var(--accent); }
.tech-badge .badge-icon {
  width: 34px; height: 34px;
  background: var(--bg-2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

/* ===== PROCESS SECTION ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -.03em;
}
.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--accent);
}
.process-step p {
  font-size: .875rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  max-width: 500px;
}
.cta-inner h2 em {
  font-style: normal;
  color: var(--accent);
}
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SERVICES PAGE ===== */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(167,192,128,.06) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 560px;
  margin: 0 auto;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 3rem;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.service-detail-info p {
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.25rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--fg-dim);
}
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
}
.service-detail-visual {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.detail-metric {
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}
.detail-metric-label { font-size: .85rem; color: var(--fg-dim); }
.detail-metric-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== ABOUT PAGE ===== */
.about-lead {
  font-size: 1.2rem;
  color: var(--fg-dim);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 2rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.value-card .value-icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}
.value-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.value-card p { font-size: .875rem; color: var(--fg-dim); line-height: 1.6; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--fg);
}
.contact-info p {
  font-size: .9rem;
  color: var(--fg-dim);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.contact-item-icon {
  width: 36px; height: 36px;
  background: var(--bg-1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fg-dim);
  margin-bottom: .4rem;
}
input, textarea, select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--fg);
  font-size: .9rem;
  font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--fg-dim); opacity: .6; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167,192,128,.12);
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; cursor: pointer; }
select option { background: var(--bg); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--fg-dim);
  margin-top: .75rem;
  max-width: 260px;
  line-height: 1.65;
}
.footer-col h5 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .875rem;
  color: var(--fg-dim);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--fg-dim);
}
.footer-bottom a { color: var(--fg-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-links.open .nav-cta { margin-left: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}

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