﻿/* Bubble Tea Studios — Software Development HK */
:root {
  --primary: #2a9d8f;
  --primary-dark: #21867a;
  --primary-light: #52b788;
  --accent: #c4956a;
  --accent-dark: #a67c52;
  --accent-soft: rgba(42, 157, 143, 0.1);
  --purple: #7b68ee;
  --navy: #1a2e35;
  --navy-mid: #264653;
  --text: #1e2d32;
  --text-muted: #5a6e75;
  --bg: #ffffff;
  --bg-alt: #f5f9f8;
  --cream: #faf6f0;
  --border: #dce8e5;
  --shadow: 0 4px 24px rgba(26, 46, 53, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 46, 53, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Noto Sans TC", "Inter", system-ui, sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a { color: rgba(255,255,255,0.9); }
.topbar-contact a:hover { color: var(--primary-light); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 0.9375rem; color: var(--navy); }
.brand-sub { font-size: 0.625rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.lang-dropdown li:hover { background: var(--bg-alt); }
.lang-dropdown li.active { color: var(--primary); font-weight: 600; }
.lang-dropdown li small { margin-left: auto; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #6a5acd 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.35);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 45%, #1f6f65 100%);
  color: #fff;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(42, 157, 143, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(123, 104, 238, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(196, 149, 106, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(42, 157, 143, 0.2);
  border: 1px solid rgba(82, 183, 136, 0.45);
  color: #7dffc8;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
}
.hero-panel {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-panel h2 { font-size: 1.125rem; margin-bottom: 20px; font-weight: 700; }
.hero-panel-list { list-style: none; }
.hero-panel-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
}
.hero-panel-list li span { color: rgba(255,255,255,0.6); }
.hero-panel-list li strong { font-weight: 600; }
.hero-hours {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-hours span { font-size: 0.75rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-hours p { font-weight: 600; margin-top: 4px; }

/* Trust bar */
.trust-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
  color: #fff;
  padding: 14px 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 40px;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
}
.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.9375rem; color: var(--text-muted); }

/* Split / About */
.split {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
}
.split-copy h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.split-copy p { color: var(--text-muted); margin-bottom: 16px; }
.check-list { list-style: none; margin: 24px 0 28px; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.info-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-panel-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 24px 28px;
}
.info-panel-head h3 { font-size: 1.125rem; font-weight: 700; }
.info-panel-head span { font-size: 0.8125rem; opacity: 0.75; }
.info-panel-body { padding: 8px 0; }
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-muted); flex-shrink: 0; }
.info-row span:last-child { text-align: right; font-weight: 500; }

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.adv-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.adv-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.adv-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.adv-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Stats */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 56px 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.1;
}
.stat-item span { font-size: 0.875rem; opacity: 0.85; margin-top: 6px; display: block; }

/* Testimonial */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}
.testimonial p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial footer { color: var(--text-muted); font-size: 0.9375rem; }
.testimonial footer strong { color: var(--navy); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.process-card:hover { box-shadow: var(--shadow); }
.process-card.featured { border-color: var(--primary); background: var(--accent-soft); }
.process-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.process-step {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
}
.process-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.process-card p { font-size: 0.9375rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.cta-inner p { opacity: 0.9; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}
.cta-band .btn-primary:hover {
  background: var(--navy);
  color: #fff;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item > span { font-size: 1.25rem; }
.contact-item strong { display: block; font-size: 0.8125rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-item p { font-weight: 500; }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  background: var(--bg-alt);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-note {
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-legal {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.form-legal a { color: var(--primary); }

/* Legal */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.legal-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.legal-block h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.legal-block p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand .brand-name small { display: block; font-size: 0.6875rem; font-weight: 500; opacity: 0.7; margin-top: 4px; letter-spacing: 0.06em; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-legal-note { margin-top: 12px; font-size: 0.75rem; opacity: 0.6; }
.footer-col h4 {
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: 0.8125rem;
  opacity: 0.65;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 480px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .service-grid,
  .process-grid,
  .legal-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
}
