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

:root {
  --bg:        #080c14;
  --bg-card:   #0f1724;
  --bg-card2:  #141e30;
  --accent:    #00d4ff;
  --accent2:   #6c63ff;
  --text:      #f0f6ff;
  --muted:     #8899aa;
  --border:    rgba(0,212,255,0.12);
  --radius:    14px;
  --shadow:    0 8px 32px rgba(0,0,0,0.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }

/* ── Utility ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: rgba(0,212,255,0.07);
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: 12px 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.btn-quote {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: opacity .2s, transform .15s;
}
.btn-quote:hover { opacity: .88; transform: translateY(-1px); }
.nav-links .btn-quote { color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,12,20,0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links .btn-quote {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    width: 100%;
  }
}

/* ── Section shared ── */
section { padding: 100px 0; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

/* fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.delay-1 { transition-delay: .1s; }
.fade-in.delay-2 { transition-delay: .2s; }
.fade-in.delay-3 { transition-delay: .3s; }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(108,99,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,212,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 14px 30px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,212,255,0.35); }
.btn-ghost {
  padding: 13px 28px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(0,212,255,0.06); }

/* hero visual */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform .3s;
}
.hero-stat-card:hover { transform: translateY(-4px); }
.hero-stat-card .num {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-card .lbl { font-size: .8rem; color: var(--muted); font-weight: 500; }
.hero-stat-card.wide { grid-column: span 2; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ── Services ── */
#services { background: var(--bg); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header .section-sub { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,212,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0,212,255,0.15);
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

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

/* ── Work / Portfolio ── */
#work { background: var(--bg-card2); }
.work-header { margin-bottom: 56px; }
.work-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 24px;
}
.work-stat { text-align: center; }
.work-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.work-stat-lbl {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}
.work-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(108,99,255,0.35); }
.work-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: linear-gradient(135deg, #141e30, #0f1a2e);
}
.work-img-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.work-img-placeholder::after {
  content: 'Screenshot coming soon';
  position: absolute;
  bottom: 12px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.work-body { padding: 24px; }
.work-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.work-body p { font-size: .875rem; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Phone collage for Streax card */
.streax-collage {
  display: flex;
  gap: 8px;
  padding: 16px 12px 0;
  background: linear-gradient(135deg, #0d1b2a, #1a2f45);
  height: 220px;
  overflow: hidden;
  align-items: flex-start;
  justify-content: center;
}
.phone-shot {
  width: calc(33.33% - 6px);
  border-radius: 10px 10px 0 0;
  object-fit: cover;
  object-position: top;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.phone-shot:nth-child(2) { margin-top: 0; }

@media (max-width: 680px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ── Contact ── */
#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: .9rem;
  color: var(--muted);
}
.contact-detail .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(0,212,255,0.04);
}
textarea { resize: vertical; min-height: 120px; }
.btn-send {
  width: 100%;
  padding: 14px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  margin-top: 6px;
}
.btn-send:hover { opacity: .9; transform: translateY(-1px); }
.btn-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.fs-success {
  padding: 16px 20px;
  background: rgba(0,212,100,0.1);
  border: 1px solid rgba(0,212,100,0.3);
  border-radius: 9px;
  color: #00d464;
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.fs-error-global {
  padding: 14px 18px;
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  border-radius: 9px;
  color: #ff6060;
  font-size: .875rem;
  margin-bottom: 16px;
}
.fs-field-error {
  display: block;
  font-size: .78rem;
  color: #ff6060;
  margin-top: 4px;
  min-height: 16px;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #ff6060;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  font-size: .875rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, padding .3s;
  text-decoration: none;
  overflow: hidden;
  max-width: 200px;
}
.wa-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-label {
  white-space: nowrap;
  overflow: hidden;
  max-width: 120px;
  transition: max-width .3s ease, opacity .3s ease;
}
@media (max-width: 768px) {
  .wa-float { display: flex; padding: 13px; border-radius: 50%; bottom: 20px; right: 20px; }
  .wa-label { display: none; }
}

/* ── Footer ── */
footer {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 1rem; font-weight: 800; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .85rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
