/* ===== Super Media Tech — styles ===== */
:root {
  --bg: #0b0f2a;
  --bg-2: #0f1335;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #eef1ff;
  --muted: #a6acd6;
  --c1: #6d5efc; /* violet */
  --c2: #00d4ff; /* cyan   */
  --c3: #ff4dd8; /* magenta */
  --c4: #21e6a3; /* mint   */
  --grad: linear-gradient(120deg, var(--c1), var(--c2));
  --grad-warm: linear-gradient(120deg, var(--c3), var(--c1));
  --radius: 18px;
  --maxw: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

h1, h2, h3, .brand-text, .stat-num, .step-num {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
strong { color: #fff; }
img, svg { max-width: 100%; }

/* ===== Animated background orbs ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 480px; height: 480px; background: var(--c1); top: -120px; left: -100px; animation: float 18s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: var(--c2); top: 30%; right: -120px; animation: float 22s ease-in-out infinite reverse; }
.orb-3 { width: 380px; height: 380px; background: var(--c3); bottom: -120px; left: 30%; animation: float 26s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.12); }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 48px);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
  background: rgba(11, 15, 42, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.brand-logo { width: 36px; height: 36px; display: block; border-radius: 10px; box-shadow: 0 8px 18px -8px var(--c1); }
.brand-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 500;
  color: var(--muted); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-cta {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 10px 24px -10px var(--c1);
}
.nav-links .nav-cta:hover { transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px var(--c1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--c2); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--card-border); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Layout / sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 32px); }
.section.alt { max-width: 100%; background: linear-gradient(180deg, transparent, var(--bg-2), transparent); }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--c2); margin-bottom: 14px;
  padding: 6px 14px; border: 1px solid var(--card-border); border-radius: 999px; background: var(--card);
}
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px clamp(18px, 5vw, 32px) 70px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 56px);
  align-items: center; max-width: var(--maxw); margin: 0 auto 52px; width: 100%;
}
.hero-text { text-align: left; }
.hero-visual { display: flex; justify-content: center; }
.art-stream { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.55)); }

/* signal wave pulse */
.wave { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: pulse 3s ease-out infinite; }
.w1 { animation-delay: 0s; } .w2 { animation-delay: 0.55s; } .w3 { animation-delay: 1.1s; }
@keyframes pulse { 0% { opacity: 0; transform: scale(0.5); } 30% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.25); } }
.dot { animation: bob 4s ease-in-out infinite; }
.d2 { animation-delay: 0.8s; } .d3 { animation-delay: 1.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(-10px); opacity: 0.5; } }

/* data flowing along the beams from hub to devices */
.beam { stroke-dashoffset: 0; animation: flow 1.4s linear infinite; }
.b2 { animation-delay: 0.3s; } .b3 { animation-delay: 0.6s; }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* broadcast hub breathing glow */
.hub-core { transform-box: fill-box; transform-origin: center; animation: hub-beat 2.4s ease-in-out infinite; }
@keyframes hub-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hub-ring { transform-box: fill-box; transform-origin: center; animation: hub-ring 2.4s ease-out infinite; }
@keyframes hub-ring { 0% { opacity: 0.45; transform: scale(0.92); } 60% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; transform: scale(1.18); } }

/* wave divider at bottom of hero */
.wave-divider { position: absolute; left: 0; bottom: 0; width: 100%; height: 90px; display: block; }
.pill {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  background: var(--card); border: 1px solid var(--card-border); color: var(--muted); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 700; margin-bottom: 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; width: 100%; }
.stat {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px 14px; backdrop-filter: blur(6px);
}
.stat-num, .stat-suffix { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.78rem; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  background: rgba(109, 94, 252, 0.12); border: 1px solid rgba(109, 94, 252, 0.3); color: #cdd2ff;
}

.custom-banner {
  margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--grad-warm); border-radius: var(--radius); padding: 32px clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.custom-emoji { font-size: 2.6rem; }
.custom-banner div { flex: 1; min-width: 230px; }
.custom-banner h3 { font-size: 1.3rem; margin-bottom: 6px; }
.custom-banner p { color: rgba(255, 255, 255, 0.85); }
.custom-banner .btn-primary { background: #fff; color: var(--c1); }

/* ===== Why grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.why-item {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.3s, background 0.3s;
}
.why-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.07); }
.why-item span { font-size: 2.2rem; display: inline-block; margin-bottom: 12px; }
.why-item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* ===== Process timeline ===== */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px;
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--c2); }
.step-num {
  font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 0.93rem; }

/* ===== Tech chips ===== */
.tech-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 0.98rem;
  background: var(--card); border: 1px solid var(--card-border); transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.chip:hover { transform: translateY(-4px) scale(1.04); background: rgba(0, 212, 255, 0.1); border-color: var(--c2); }
.chip-more { background: var(--grad); border-color: transparent; color: #fff; }
.chip-more:hover { background: var(--grad); border-color: transparent; }

/* ===== About ===== */
.about-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about-text .eyebrow { margin-bottom: 16px; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.about-points span { font-weight: 500; font-size: 0.95rem; }
.about-right { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.art-globe { width: 100%; max-width: 270px; height: auto; }
.globe-spin { transform-box: fill-box; transform-origin: center; animation: spin 44s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.node { animation: bob 4s ease-in-out infinite; }
.n2 { animation-delay: 0.9s; } .n3 { animation-delay: 1.7s; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.about-stat {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px 18px; text-align: center;
}
.about-stat strong { display: block; font-size: 2.2rem; font-family: "Space Grotesk", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat span { color: var(--muted); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.contact-form, .contact-info {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font-family: inherit; font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6f76a8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c2); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; text-align: center; }
.form-note.ok { color: var(--c4); }
.form-note.err { color: #ff6b8a; }

.contact-info h3 { margin-bottom: 18px; font-size: 1.2rem; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--card-border); margin-bottom: 14px; transition: transform 0.2s, border-color 0.2s;
}
a.contact-card:hover { transform: translateX(4px); border-color: var(--c2); }
.contact-emoji { font-size: 1.6rem; }
.contact-card strong { display: block; font-size: 0.95rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; word-break: break-all; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--card-border); padding: 48px clamp(18px, 5vw, 48px) 32px; background: var(--bg-2); }
.footer-top {
  max-width: var(--maxw); margin: 0 auto 24px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.slogan { font-family: "Space Grotesk", sans-serif; font-size: 1.02rem; font-weight: 500; color: var(--text); }
.slogan span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; color: var(--muted); font-size: 0.88rem; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 50px; height: 50px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--grad); border-radius: 50%; box-shadow: 0 12px 26px -10px var(--c1);
  opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1024px) {
  .section { padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 32px); }
  .hero-grid { gap: 32px; }
  .footer-top { justify-content: center; text-align: center; }
}

/* ---- Nav collapses + hero stacks ---- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100svh; width: min(82vw, 330px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 8px;
    padding: 90px 22px; background: rgba(11, 15, 42, 0.98); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform 0.35s ease; box-shadow: -20px 0 50px -20px #000;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 13px 16px; }
  .hamburger { display: flex; z-index: 101; }

  .hero { min-height: auto; justify-content: flex-start; padding-top: 116px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; margin-bottom: 40px; }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .art-stream { max-width: 340px; }
  .hero-stats { gap: 14px; }

  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Phones ---- */
@media (max-width: 600px) {
  .navbar { padding: 12px 16px; }
  .brand { font-size: 1.1rem; }
  .section-head { margin-bottom: 40px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 12px; }
  .card, .why-item, .step, .contact-form, .contact-info { padding: 22px; }
  .custom-banner { flex-direction: column; text-align: center; justify-content: center; padding: 26px 22px; }
  .custom-banner .btn-primary { width: 100%; justify-content: center; }
  .about-points { grid-template-columns: 1fr; }
  .footer-links { justify-content: center; }
  .to-top { width: 44px; height: 44px; bottom: 18px; right: 18px; }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .brand-text { font-size: 1rem; }
  .btn { padding: 12px 18px; font-size: 0.92rem; }
  .chip { padding: 10px 15px; font-size: 0.9rem; }
  .step { gap: 12px; padding: 20px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .wave, .dot, .node { opacity: 0.75; }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  width: min(680px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 40px));
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 16px;
  background: rgba(15, 19, 53, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-text { flex: 1 1 280px; }
.cookie-text strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.cookie-text p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { padding: 10px 22px; font-size: 0.9rem; }

@media (max-width: 540px) {
  .cookie-banner { bottom: 12px; padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
