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

:root {
  --bg:           #0D1117;
  --surface:      #161B27;
  --card-bg:      #1E2435;
  --card-hover:   #232B42;
  --navy:         #E8EDF5;
  --gray:         #8B95A8;
  --blue:         #4F8EF7;
  --blue-dark:    #2563EB;
  --blue-light:   #1A2540;
  --blue-glow:    rgba(79,142,247,0.18);
  --green:        #10B981;
  --green-light:  #0D2E22;
  --border:       #2A3147;
  --white:        #FFFFFF;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(79,142,247,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
}

/* ===== Navbar ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  min-height: calc(100vh - 68px);
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 80px 5%;
  overflow: hidden;
}

/* Background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,142,247,0.18) 0%, transparent 70%);
  top: -100px;
  right: 5%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,60,220,0.12) 0%, transparent 70%);
  bottom: -80px;
  left: 0;
}

/* Dot grid overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Left: text */
.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border: 1px solid rgba(79,142,247,0.3);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blue);
}

#hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -1px;
}

#hero h1 span { color: var(--blue); }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--gray);
  max-width: 480px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: #6BA3F9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,142,247,0.4);
}

.btn-ghost {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
}

.hero-stat-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Right: visual panel */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  background: rgba(30,36,53,0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(79,142,247,0.08), var(--shadow);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s;
}

.service-pill:hover { border-color: var(--blue); background: var(--blue-light); }

.service-pill-icon { font-size: 1.1rem; }

.service-pill.featured {
  border-color: rgba(79,142,247,0.5);
  background: var(--blue-light);
  color: var(--blue);
}

.service-pill.featured .pill-badge {
  margin-left: auto;
  background: var(--blue);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ===== Sections ===== */
section { padding: 96px 5%; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(79,142,247,0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* ===== About ===== */
#about { background: var(--bg); }

#about .section-inner { max-width: 760px; }

#about p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.85;
}

/* ===== Services ===== */
#services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.services-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  max-width: calc(66.6% - 6px);
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79,142,247,0.4);
  background: var(--card-hover);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  border: 1px solid rgba(79,142,247,0.2);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.card > p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 0;
  flex: 1;
}

.card-features li {
  font-size: 0.83rem;
  color: var(--gray);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.card-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 6px;
}

/* Featured app strip at bottom of Shopify card */
.card-app-cta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-app-cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-app-cta-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

.card-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}

.card-app-link:hover { color: #6BA3F9; }

.card-app-link::after { content: ' →'; }

/* ===== Our Apps ===== */
#apps { background: var(--bg); }

.app-card {
  margin-top: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.app-card:hover {
  border-color: rgba(79,142,247,0.4);
  box-shadow: 0 0 40px rgba(79,142,247,0.1), var(--shadow);
}

.app-icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1A2540 0%, #0D1B3E 100%);
  border: 1px solid rgba(79,142,247,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(79,142,247,0.15);
}

.app-content { display: flex; flex-direction: column; gap: 12px; }

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.app-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--green);
}

.app-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.app-content p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 600px;
}

.btn-green {
  display: inline-block;
  padding: 12px 26px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-green:hover {
  background: #0EA472;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

/* ===== Contact ===== */
#contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--blue-light);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--blue); }

.contact-item p {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

/* ===== Footer ===== */
footer {
  background: #080C12;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 28px 5%;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

footer span { color: rgba(255,255,255,0.7); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-text { align-items: center; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-bottom { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-card { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .app-icon-wrap { margin: 0 auto; }
  .app-content { align-items: center; }
  .app-badge { margin: 0 auto; }
  .btn-green { margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #161B27;
    flex-direction: column;
    padding: 20px 5% 28px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .services-bottom { grid-template-columns: 1fr; max-width: 100%; }

  section { padding: 64px 5%; }

  .app-card { padding: 28px 20px; }
}
