/* ============================================
   SuperSync Technology Inc. | Website Styles
   ============================================ */

:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1345b5;
  --color-primary-light: #e8effc;
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-soft: #f9fafb;
  --color-bg-alt: #f3f4f6;
  --color-border: #e5e7eb;
  --color-dark: #0f172a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-poly {
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: .925rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  font-size: .9rem;
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
}
.btn-sm:hover { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
}
.btn-lg:hover { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); color: var(--color-primary); box-shadow: none; }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(168deg, #f0f5ff 0%, #ffffff 50%, #f9fafb 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.hero h1.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}
.hero-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 0.08em;
}
.hero-ai-icon-inner {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
  padding: 10px 20px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero globe visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  animation: globe-float 8s ease-in-out infinite;
}
@keyframes globe-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.globe-svg .node { animation: node-glow 3s ease-in-out infinite; }
.globe-svg .node-1 { animation-delay: 0s; }
.globe-svg .node-2 { animation-delay: .8s; }
.globe-svg .node-3 { animation-delay: 1.6s; }
.globe-svg .node-4 { animation-delay: 2.4s; }
.globe-svg .node-5 { animation-delay: .4s; }
.globe-svg .node-6 { animation-delay: 1.2s; }
@keyframes node-glow {
  0%, 100% { r: 6; opacity: 1; }
  50%      { r: 8; opacity: .7; }
}
.globe-svg .pulse { animation: pulse-ring 3s ease-in-out infinite; }
.globe-svg .pulse-1 { animation-delay: 0s; }
.globe-svg .pulse-2 { animation-delay: .8s; }
.globe-svg .pulse-3 { animation-delay: 1.6s; }
.globe-svg .pulse-4 { animation-delay: 2.4s; }
.globe-svg .pulse-5 { animation-delay: .4s; }
.globe-svg .pulse-6 { animation-delay: 1.2s; }
@keyframes pulse-ring {
  0%, 100% { r: 12; opacity: .15; }
  50%      { r: 18; opacity: .05; }
}
/* Traveling stripe animation on connection lines */
.globe-svg .travel { animation: travel-dash 2s linear infinite; }
.travel-1 { animation-delay: 0s !important; }
.travel-2 { animation-delay: .4s !important; }
.travel-3 { animation-delay: .8s !important; }
.travel-4 { animation-delay: 1.2s !important; }
.travel-5 { animation-delay: 1.6s !important; }
@keyframes travel-dash {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -44; }
}
/* Traveling dot glow */
.globe-svg .dot {
  filter: drop-shadow(0 0 3px rgba(26,86,219,.6));
}
.globe-svg text {
  animation: none;
}

/* ---------- Section Shared ---------- */
.section-tag {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ---------- Services ---------- */
.services {
  padding: 100px 0;
  background: var(--color-bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .25s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card > p {
  font-size: .95rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: .875rem;
  color: var(--color-text-secondary);
  padding-left: 22px;
  position: relative;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Payment badges */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.payment-badge {
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ---------- Why ---------- */
.why {
  padding: 100px 0;
  background: var(--color-bg-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.why-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.why-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.why-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-item p {
  font-size: .9rem;
  color: var(--color-text-secondary);
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--color-bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
/* About visual */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}
.about-ai-flow {
  animation: about-ai-dash 5s linear infinite;
}
.about-ai-flow-delay {
  animation-delay: 1.2s;
}
@keyframes about-ai-dash {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}
.about-svg-stack {
  border-radius: 22px;
  box-shadow:
    0 24px 48px rgba(26, 86, 219, 0.07),
    0 8px 24px rgba(15, 23, 42, 0.05);
}
.about-stack-glow {
  animation: about-stack-glow-kf 4s ease-in-out infinite;
}
@keyframes about-stack-glow-kf {
  0%, 100% { opacity: .35; }
  50% { opacity: .65; }
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: var(--color-dark);
  color: #fff;
}
.contact .section-tag { color: #93b4f5; }
.contact .section-title { color: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-text p {
  font-size: 1.05rem;
  color: #cbd5e1;
}
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card > p {
  font-size: .95rem;
  color: #94a3b8;
  margin-bottom: 24px;
}
.contact-card .btn-lg {
  margin-bottom: 14px;
}
.contact-note {
  font-size: .85rem;
  color: #64748b;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand p {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: .875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1.hero-title { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 24px;
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .mobile-toggle { display: flex; }
  .hero h1.hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
