/* ===== San Wui Cup  flyer-inspired ocean/tech theme ===== */
:root {
  --blue-900: #0c2b6b;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-100: #e0f2fe;
  --sky-50: #f0f9ff;
  --amber: #f59e0b;
  --amber-300: #fcd34d;
  --yellow: #fde047;
  --coral: #fb7185;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --white: #ffffff;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 18px 40px rgba(13, 71, 161, 0.14);
  --shadow-sm: 0 8px 22px rgba(13, 71, 161, 0.10);
  --maxw: 1140px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang HK", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), #fb923c);
  color: #3b1d00;
  box-shadow: 0 10px 22px rgba(245, 158, 11, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(245, 158, 11, .5); }
.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-lg { font-size: 1.12rem; padding: 16px 34px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,165,233,.14);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--sky-100); color: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switch { display: inline-flex; background: var(--sky-100); border-radius: 999px; padding: 4px; }
.lang-switch button {
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: .85rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.lang-switch button.active { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--sky-100);
  border: none;
  border-radius: 12px;
  width: 46px; height: 46px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--blue-700);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 15% -10%, #60a5fa 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-700) 0%, var(--sky-500) 60%, var(--sky-400) 100%);
  color: #fff;
  padding: 64px 0 130px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: .82rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.08;
  margin: 18px 0 10px;
  font-weight: 900;
  text-shadow: 0 6px 24px rgba(3,25,80,.28);
}
.hero h1 .accent { color: var(--yellow); }
.hero .lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 34ch; opacity: .96; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.event-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: .95rem;
}
.chip .ic { font-size: 1.2rem; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .robot { width: min(340px, 80%); filter: drop-shadow(0 24px 34px rgba(3,25,80,.4)); animation: float 5s ease-in-out infinite; }
.badge-qualify {
  position: absolute;
  top: 6%;
  right: -6px;
  background: var(--yellow);
  color: #7c3a00;
  font-weight: 900;
  border-radius: 18px;
  padding: 12px 16px;
  max-width: 180px;
  line-height: 1.25;
  box-shadow: 0 12px 26px rgba(3,25,80,.3);
  transform: rotate(4deg);
  animation: wobble 6s ease-in-out infinite;
}
.badge-qualify small { display: block; font-size: .72rem; font-weight: 800; opacity: .85; }

/* bubbles */
.bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,.16); animation: rise 12s linear infinite; }
.bubble.b1 { width: 60px; height: 60px; left: 8%; bottom: -60px; animation-duration: 14s; }
.bubble.b2 { width: 26px; height: 26px; left: 28%; bottom: -30px; animation-duration: 10s; animation-delay: 2s; }
.bubble.b3 { width: 40px; height: 40px; left: 60%; bottom: -40px; animation-duration: 16s; animation-delay: 1s; }
.bubble.b4 { width: 18px; height: 18px; left: 82%; bottom: -20px; animation-duration: 9s; animation-delay: 3s; }

/* wave divider */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave-divider svg { width: 100%; height: 90px; }
.section-wave { line-height: 0; }
.section-wave svg { width: 100%; height: 70px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section.tint { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--sky-500);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .82rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 900;
  margin: 8px 0 12px;
  color: var(--blue-900);
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Highlights */
.highlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.highlight-card {
  background: linear-gradient(160deg, #fff, var(--sky-50));
  border: 2px solid var(--sky-100);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.highlight-card .emoji {
  font-size: 2.4rem;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  background: var(--sky-100);
  border-radius: 20px;
  margin-bottom: 16px;
}
.highlight-card h3 { font-size: 1.4rem; margin: 0 0 8px; color: var(--blue-800, #1e40af); }
.highlight-card p { color: var(--ink-soft); margin: 0; }

/* VEX GO feature */
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.feature-media {
  background: linear-gradient(160deg, var(--sky-400), var(--blue-600));
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-media .tag {
  display: inline-block;
  background: var(--yellow);
  color: #7c3a00;
  font-weight: 900;
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 12px;
}
.feature-media .big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.1; }
.feature-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--blue-900); font-weight: 900; margin: 0 0 14px; }
.feature-text p { color: var(--ink-soft); font-size: 1.08rem; }

/* Learn cards */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.learn-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--sky-400);
  transition: transform .2s ease;
}
.learn-card:nth-child(2) { border-top-color: var(--amber); }
.learn-card:nth-child(3) { border-top-color: var(--coral); }
.learn-card:hover { transform: translateY(-6px); }
.learn-card .num { font-size: 2rem; font-weight: 900; color: var(--sky-500); }
.learn-card:nth-child(2) .num { color: var(--amber); }
.learn-card:nth-child(3) .num { color: var(--coral); }
.learn-card h3 { font-size: 1.25rem; margin: 6px 0 10px; color: var(--blue-900); }
.learn-card p { color: var(--ink-soft); margin: 0; }

/* Details */
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.detail-box {
  background: linear-gradient(160deg, var(--blue-700), var(--sky-500));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.detail-box .ic { font-size: 2.2rem; }
.detail-box .label { font-weight: 800; opacity: .85; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-top: 10px; }
.detail-box .value { font-size: 1.35rem; font-weight: 900; margin-top: 4px; }

/* Asia Tech Tour strip */
.att-strip {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.att-strip h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin: 0 0 10px; }
.att-strip p { opacity: .92; max-width: 640px; margin: 0 auto 12px; }
.att-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 22px; }
.att-flags span {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

/* Registration */
.register { background: linear-gradient(180deg, var(--sky-50), #fff); }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.reg-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 2px solid var(--sky-100);
}
.reg-card h3 { margin: 0 0 18px; font-size: 1.5rem; color: var(--blue-900); font-weight: 900; }
.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); font-size: .95rem; }
label .req { color: var(--coral); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56,189,248,.18);
}
textarea { resize: vertical; min-height: 90px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 700; border-radius: 12px; padding: 12px 14px; display: none; }
.form-status.ok { display: block; background: #dcfce7; color: #166534; }
.form-status.err { display: block; background: #fee2e2; color: #991b1b; }
.form-status.loading { display: block; background: var(--sky-100); color: var(--blue-700); }

.contact-card {
  background: linear-gradient(160deg, var(--blue-700), var(--sky-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; }
.contact-card p.sub { opacity: .9; margin: 0 0 20px; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  transition: background .18s, transform .18s;
}
.contact-item:hover { background: rgba(255,255,255,.22); transform: translateX(4px); }
.contact-item .ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.22);
  border-radius: 12px;
  font-size: 1.3rem;
}
.contact-item .meta small { display: block; font-weight: 600; opacity: .8; font-size: .78rem; }

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: #cbd5e1;
  padding: 50px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: .88rem;
  opacity: .8;
}
.brand-footer { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand-footer .logo-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  display: grid; place-items: center;
  color: #fff; font-weight: 900;
}

/* Animations */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes wobble { 0%,100% { transform: rotate(4deg); } 50% { transform: rotate(-3deg); } }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-620px) scale(.4); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-art .robot, .badge-qualify, .bubble { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Organizers ---------- */
.org-block { margin-top: 30px; }
.org-block + .org-block { margin-top: 40px; }
.org-label {
  text-align: center;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--sky-500);
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 20px;
}
.org-label span {
  display: inline-block;
  background: var(--sky-100);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 6px 18px;
}
.org-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.org-card {
  background: #fff;
  border: 2px solid var(--sky-100);
  border-radius: 20px;
  padding: 22px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.org-card img { height: 54px; width: auto; object-fit: contain; }
.org-card.main img { height: 68px; }
.att-series-note {
  margin: 6px auto 0;
  font-weight: 800;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 8px 18px;
  display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .event-chips { justify-content: center; }
  .hero-art { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .learn-grid, .details-grid { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .highlight-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .org-card { padding: 18px 22px; min-height: 78px; }
  .org-card img { height: 42px; }
  .org-card.main img { height: 52px; }
}
