/* ─────────────────────────────────────────────────────────────
   uSocket Website — Design System (matches Flutter app palette)
   Colors from SoccerAppDesignSystem.md
   ──────────────────────────────────────────────────────────── */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --accent:    #87CEEB;   /* sky blue  */
  --bg-mid:    #2C5F6F;   /* mid teal  */
  --bg-bot:    #1A3F4D;   /* dark teal */
  --bg-deep:   #0F2A36;   /* deeper bg */
  --green:     #4CAF50;
  --red:       #EF5350;
  --neon:      #00E5FF;   /* electric cyan */
  --neon-glow: #0FFFD4;   /* mint glow */

  --glass-fill:   rgba(44, 95, 111, 0.50);
  --glass-fill2:  rgba(26, 63, 77, 0.65);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: rgba(0, 0, 0, 0.25);

  --radius-card: 20px;
  --radius-pill: 20px;
  --radius-btn:  12px;

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── GLASS CARD ──────────────────────────────────────────── */
.glass-card {
  background: linear-gradient(135deg, var(--glass-fill), var(--glass-fill2));
  border: 1.2px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px var(--glass-shadow);
  padding: 28px;
}

/* ── NEON TEXT GRADIENT ──────────────────────────────────── */
.neon-text {
  background: linear-gradient(135deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 24px;
  transition: padding .3s;
}
.nav.scrolled { padding: 10px 24px; }

.nav-pill {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.08);
  border: 1.2px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.nav-logo .logo-icon { display: flex; align-items: center; }
.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color .2s, background .2s;
  letter-spacing: 0.3px;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(135, 206, 235, 0.12);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  padding: 5px 9px;
  border-radius: 7px;
  transition: color .2s, background .2s;
  line-height: 1;
}
.lang-btn:hover { color: rgba(255,255,255,0.8); }
.lang-btn.active {
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(135,206,235,0.15));
  color: var(--neon);
  box-shadow: 0 0 8px rgba(0,229,255,0.15);
}

/* Mobile lang */
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-lang .lang-btn { font-size: 12px; padding: 7px 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: rgba(15, 42, 54, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
}
.mobile-drawer.open { max-height: 300px; padding: 12px 0; }
.mobile-link {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .2s, background .2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--neon); background: rgba(0,229,255,0.05); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

/* Ambient orbs */
.hero-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--neon), transparent 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: 40%; right: -8%;
  animation-delay: -3s;
}
.orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--neon-glow), transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  flex: 1;
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.hero-visual {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.30);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon);
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero title */
.hero-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #fff;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Store buttons */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(44,95,111,0.7), rgba(26,63,77,0.9));
  border: 1.2px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 8px 24px rgba(0,229,255,0.15);
}
.store-inner { display: flex; align-items: center; gap: 12px; }
.store-icon { width: 28px; height: 28px; color: #fff; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; }
.store-sub { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }
.store-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.3px; }
.store-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  color: var(--bg-bot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* ── PHONE MOCKUP ────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  width: 240px;
}
.phone-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.18), transparent 70%);
  animation: glowPulse 2.2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.phone {
  width: 240px;
  height: 480px;
  background: linear-gradient(160deg, #1e4d5e, #0F2A36);
  border-radius: 36px;
  border: 1.5px solid rgba(0,229,255,0.25);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
  animation: phoneFloat 3s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-notch {
  width: 80px;
  height: 8px;
  background: rgba(0,229,255,0.2);
  border-radius: 0 0 10px 10px;
  margin: 12px auto 0;
}
.phone-screen { padding: 16px; }

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.app-bar-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-bar-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.app-stat { text-align: center; margin-bottom: 20px; }
.stat-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.4); }
.stat-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff, var(--neon), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1;
  margin-top: 4px;
}

.app-cards { display: flex; flex-direction: column; gap: 8px; }
.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px 12px;
}
.app-card-left { display: flex; align-items: center; gap: 8px; }
.ac-icon { font-size: 16px; }
.ac-title { font-size: 11px; font-weight: 600; color: #fff; }
.ac-sub { font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.ac-time { font-size: 10px; font-weight: 600; color: var(--accent); }

/* ── SECTION COMMONS ─────────────────────────────────────── */
section { padding: 100px 0; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 52px;
  color: #fff;
}

/* ── FEATURES ────────────────────────────────────────────── */
.features { background: linear-gradient(180deg, transparent, rgba(0,229,255,0.03), transparent); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feat-card { text-align: center; padding: 32px 20px; transition: transform .25s, box-shadow .25s; }
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,229,255,0.12);
}
.feat-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(var(--ic, 0,229,255), 0.12);
  border: 1px solid color-mix(in srgb, var(--ic, #00E5FF) 35%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--ic, var(--neon));
}
.feat-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about { background: rgba(26,63,77,0.3); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-card { transition: transform .25s; }
.about-card:hover { transform: translateY(-4px); }
.about-card-icon { font-size: 32px; margin-bottom: 16px; }
.about-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.contact-form-card { padding: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.2px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 13px 16px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  border: none;
  border-radius: var(--radius-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  padding: 14px 24px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(0,229,255,0.30);
  transition: transform .2s, box-shadow .2s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,255,0.40); }
.submit-btn:active { transform: translateY(0); }

.form-success {
  display: none;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  background: rgba(76,175,80,0.08);
  border: 1px solid rgba(76,175,80,0.25);
  border-radius: 10px;
  padding: 12px;
}

/* Contact info cards */
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { padding: 20px 24px; }
.info-row { display: flex; align-items: center; gap: 14px; }
.info-icon-wrap { font-size: 22px; }
.info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.info-value { font-size: 15px; font-weight: 600; color: #fff; }
.social-card { padding: 20px 24px; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn {
  background: rgba(135,206,235,0.10);
  border: 1px solid rgba(135,206,235,0.25);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.social-btn:hover {
  background: rgba(135,206,235,0.18);
  border-color: rgba(135,206,235,0.45);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 24px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-tagline { color: rgba(255,255,255,0.35); }

/* ── FADE-UP ANIMATIONS ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.25,.8,.25,1), transform .6s cubic-bezier(.25,.8,.25,1);
}
.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s cubic-bezier(.25,.8,.25,1), transform .7s cubic-bezier(.25,.8,.25,1);
}
.fade-up.visible,
.fade-right.visible { opacity: 1; transform: none; }

/* stagger hero */
.hero-content .fade-up:nth-child(1) { transition-delay: 0.1s; }
.hero-content .fade-up:nth-child(2) { transition-delay: 0.2s; }
.hero-content .fade-up:nth-child(3) { transition-delay: 0.3s; }
.hero-content .fade-up:nth-child(4) { transition-delay: 0.4s; }
.hero-visual.fade-right            { transition-delay: 0.3s; }

.feat-card.fade-up:nth-child(1) { transition-delay: 0.0s; }
.feat-card.fade-up:nth-child(2) { transition-delay: 0.1s; }
.feat-card.fade-up:nth-child(3) { transition-delay: 0.2s; }
.feat-card.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .info-card { flex: 1 1 200px; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 60px;
    gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-badge { margin: 0 auto 20px; }
  .store-row { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-wrap { width: 200px; }
  .phone { width: 200px; height: 400px; }

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

  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .store-row { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; }
}
