:root {
  --blue: #0af;
  --blue-bright: #00ccff;
  --blue-dark: #0088cc;
  --blue-glow: rgba(0, 170, 255, 0.25);
  --black: #060a0f;
  --black-2: #0d1420;
  --black-3: #111c2d;
  --black-4: #162336;
  --white: #e8f4ff;
  --gray: #7a95b0;
  --border: rgba(0, 170, 255, 0.2);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--black);
  box-shadow: 0 0 16px var(--blue-glow);
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: var(--black) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: box-shadow 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-bright) !important;
  box-shadow: 0 0 20px var(--blue-glow);
  color: var(--black) !important;
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,170,255,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,170,255,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--blue);
  text-shadow: 0 0 40px rgba(0,170,255,0.4);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--black);
  box-shadow: 0 0 30px rgba(0,170,255,0.3);
}

.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 40px rgba(0,170,255,0.5);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,170,255,0.05);
}

/* ─── SECTIONS ────────────────────────────────── */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 540px;
}

.section-header {
  margin-bottom: 3.5rem;
}

/* ─── APPS ────────────────────────────────────── */
#apps { background: var(--black-2); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(0,170,255,0.12);
  transform: translateY(-3px);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0,170,255,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.app-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.badge-live { background: rgba(0,255,130,0.15); color: #00ff82; }
.badge-soon { background: rgba(0,170,255,0.15); color: var(--blue); }
.badge-quote { background: rgba(255,170,0,0.15); color: #ffaa00; }

.app-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.app-card p {
  color: var(--gray);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.app-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.app-features li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.2s;
  margin-top: auto;
}

.app-link:hover { gap: 0.7rem; }

/* ─── SERVICES ────────────────────────────────── */
#services { background: var(--black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(0,170,255,0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.875rem;
}

/* ─── STATS ───────────────────────────────────── */
.stats-bar {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 30px rgba(0,170,255,0.4);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ─── FORMS ───────────────────────────────────── */
#quote { background: var(--black-2); }
#contact { background: var(--black); }

.forms-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.form-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.form-info p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.form-perks {
  list-style: none;
}

.form-perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--gray);
  font-size: 0.9rem;
}

.form-perks li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,170,255,0.15);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--blue);
  flex-shrink: 0;
}

.form-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  background: var(--black-4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,170,255,0.1);
}

input::placeholder, textarea::placeholder { color: #3a5a7a; }

select option { background: var(--black-3); }

textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.form-msg {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: none;
}

.form-msg.success {
  background: rgba(0,255,130,0.1);
  border: 1px solid rgba(0,255,130,0.3);
  color: #00ff82;
  display: block;
}

.form-msg.error {
  background: rgba(255,60,60,0.1);
  border: 1px solid rgba(255,60,60,0.3);
  color: #ff6060;
  display: block;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--black);
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-text span { color: var(--blue); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
  list-style: none;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--gray);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ─── WHO WE HELP ─────────────────────────────── */
#who-we-help { background: var(--black); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.who-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.who-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(0,170,255,0.1);
}

.who-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.who-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.who-card p { color: var(--gray); font-size: 0.875rem; }

/* ─── APP SCREENSHOT ──────────────────────────── */
.app-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.app-screenshot-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-screenshot-link:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,170,255,0.15);
}

.app-screenshot {
  width: 100%;
  display: block;
  border-radius: 7px;
}

/* ─── APP ACTIONS ─────────────────────────────── */
.app-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ─── WHY SRT ─────────────────────────────────── */
#why-srt { background: var(--black-2); }

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.why-features { display: flex; flex-direction: column; gap: 0.75rem; }

.why-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--white);
}

.why-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,170,255,0.15);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--blue);
  flex-shrink: 0;
}

/* ─── HOW IT WORKS ────────────────────────────── */
#how-it-works { background: var(--black); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.process-step:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(0,170,255,0.1);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,170,255,0.15);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1rem;
}

.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.process-step p { color: var(--gray); font-size: 0.875rem; line-height: 1.6; }

/* ─── PORTFOLIO ───────────────────────────────── */
#our-work { background: var(--black-2); }

.portfolio-grid { display: flex; flex-direction: column; gap: 2rem; }

.portfolio-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portfolio-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(0,170,255,0.1);
}

.portfolio-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.portfolio-info h3 { font-size: 1.3rem; font-weight: 700; margin: 0.5rem 0 0.75rem; }
.portfolio-info p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }

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

/* ─── FOOTER ADDITIONS ────────────────────────── */
.footer-tagline { color: var(--gray); font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-address { color: var(--gray); font-size: 0.8rem; margin-top: 0.5rem; }

/* ─── MOBILE NAV ──────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6,10,15,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { font-size: 1rem; display: block; padding: 0.4rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── LOADING STATE ───────────────────────────── */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }
