/* ================================================
   TrollyNet - Stylesheet (Light / Enterprise theme)
   ================================================ */

:root {
  --bg:          #ffffff;
  --bg-2:        #f8fafc;
  --bg-card:     #ffffff;
  --bg-card-h:   #f1f5f9;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-dark:   #1d4ed8;
  --glow:        rgba(37, 99, 235, 0.07);
  --border:      #e2e8f0;
  --border-h:    #93c5fd;
  --text:        #0f172a;
  --muted:       #64748b;
  --green:       #16a34a;
  --orange:      #ea580c;
  --radius:      12px;
  --radius-sm:   8px;
  --ease:        0.2s ease;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.5px; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
p  { color: var(--muted); }
a  { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--blue-dark); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--glow);
}
.btn-white {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background: #f1f5f9;
  color: var(--blue-dark);
  transform: translateY(-1px);
}

/* ── Nav ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease), background var(--ease);
}
nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links .nav-btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
}
.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); }

/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f0f6ff 0%, #ffffff 55%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 22px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.5s infinite;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num  { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-lbl  { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* Dashboard preview card - stays dark for contrast */
.dashboard-card {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}
.dc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dc-dots { display: flex; gap: 5px; }
.dc-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dc-dots span:nth-child(1) { background: #ef4444; }
.dc-dots span:nth-child(2) { background: #eab308; }
.dc-dots span:nth-child(3) { background: #22c55e; }
.dc-title { flex: 1; font-size: 0.82rem; font-weight: 600; color: #e2e8f0; }
.dc-live  {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700; color: #22c55e; letter-spacing: 0.8px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.dc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  text-align: center;
}
.dc-num { font-size: 1.6rem; font-weight: 700; color: #f1f5f9; line-height: 1; }
.dc-num.g { color: #22c55e; }
.dc-num.o { color: #f97316; }
.dc-lbl { font-size: 0.7rem; color: #64748b; margin-top: 3px; }

.dc-map {
  background: #020817;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}
.d { aspect-ratio: 1; border-radius: 50%; background: #1e293b; }
.d.g { background: rgba(34,197,94,0.55); }
.d.o { background: rgba(249,115,22,0.55); }
.d.b { background: rgba(59,130,246,0.55); }

.dc-alerts { display: flex; flex-direction: column; gap: 8px; }
.dc-alert {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: #64748b;
}
.da-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.da-dot.o { background: #f97316; }
.da-dot.g { background: #22c55e; }
.da-dot.b { background: #3b82f6; }
.da-time  { margin-left: auto; font-size: 0.68rem; opacity: 0.55; white-space: nowrap; }

/* ── Page hero (inner pages) ─────────────────── */
.page-hero {
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .sub {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Sections ────────────────────────────────── */
section { padding: 88px 0; }
.section-dark { background: var(--bg-2); }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-desc  { font-size: 1rem; max-width: 520px; margin-bottom: 48px; }

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-box {
  width: 46px; height: 46px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; stroke: var(--blue); }

.card h3 { margin-bottom: 8px; }

/* ── Grids ───────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Steps ───────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step  { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.step h3 { margin-bottom: 4px; }

/* ── Connectivity badges ─────────────────────── */
.conn-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.conn-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid;
}
.conn-badge.lora { color: #7c3aed; border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.06); }
.conn-badge.lte  { color: #059669; border-color: rgba(5,150,105,0.3); background: rgba(5,150,105,0.06); }

/* ── Tech flow diagram ───────────────────────── */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 40px 0;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.flow-node .icon-box { margin: 0; }
.flow-node span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.flow-arrow {
  font-size: 1.1rem;
  color: var(--border-h);
  margin: 0 14px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* ── Tech section (how-it-works) ─────────────── */
.tech-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tech-content.flip { direction: rtl; }
.tech-content.flip > * { direction: ltr; }

.tech-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tech-visual-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--muted); }
.spec-val { color: var(--text); font-weight: 500; }
.spec-val.blue { color: var(--blue); }

.conn-split { display: flex; flex-direction: column; gap: 14px; }
.conn-option {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.conn-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.conn-option-header h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.conn-option p { font-size: 0.83rem; }

/* ── CTA section ─────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
  text-align: center;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p  { max-width: 480px; margin: 0 auto 28px; }

/* ── Pricing page ────────────────────────────── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--muted);
}
.feature-list li::before {
  content: '';
  display: inline-block;
  width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
  margin-top: 1px;
}

.quote-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  margin-top: 48px;
}
.quote-card h2 { margin-bottom: 12px; }
.quote-card p  { max-width: 480px; margin: 0 auto 28px; }

/* ── Contact page ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }

.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  box-shadow: var(--shadow-sm);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.6; }
input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea { resize: vertical; min-height: 130px; }

.alert-success {
  padding: 14px 18px;
  background: rgba(22,163,74,0.07);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-sm);
  color: #15803d;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.info-card .icon-box { margin: 0; width: 40px; height: 40px; }
.info-card .icon-box svg { width: 18px; height: 18px; }
.info-card h4 { font-size: 0.85rem; margin-bottom: 3px; }
.info-card p  { font-size: 0.83rem; }

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; margin-top: 10px; max-width: 250px; color: var(--muted); }
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 0.88rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-links span { color: var(--muted); font-size: 0.88rem; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted); }

/* ── Divider ─────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── 404 ─────────────────────────────────────── */
.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.not-found .big { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--blue); line-height: 1; opacity: 0.15; }
.not-found h2 { margin: 8px 0 12px; }

/* ── Fade-in animation ───────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 61px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links a { color: var(--muted); }
  .nav-links a:hover { color: var(--text); }
  .nav-links .btn { width: 100%; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .dashboard-card { display: none; }

  .hero { background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 60%); }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-btns .btn { flex: 1; justify-content: center; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .tech-content { grid-template-columns: 1fr; gap: 28px; }
  .tech-content.flip { direction: ltr; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .flow-diagram { gap: 0; row-gap: 16px; }
  .flow-arrow { margin: 0 8px; }

  .quote-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
