:root {
  --color-primary: #10203f;
  --color-accent: #2f6fed;
  --color-accent-dark: #1e4fc4;
  --color-bg: #ffffff;
  --color-bg-alt: #eef3fb;
  --color-text: #222831;
  --color-text-muted: #5a6472;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.35;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--color-accent);
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e9ef;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.logo-en {
  color: var(--color-accent);
}

.nav {
  display: flex;
}

.nav a {
  margin-left: 32px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 0 110px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.pain-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 111, 237, 0.08);
  border: 1px solid rgba(47, 111, 237, 0.25);
  color: var(--color-accent-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--color-primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(16, 32, 63, 0.05);
}

.hero-service-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hero-service-icon svg {
  width: 18px;
  height: 18px;
}

.hero-service-icon.svc-google {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.hero-service-icon.svc-fb {
  background: #1877f2;
}

.hero-service-icon.svc-yt {
  background: #ff0000;
}

.hero-service-icon.svc-maps {
  background: var(--color-bg-alt);
}

.hero-service-icon.svc-web {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.hero-service-icon.svc-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.hero-service-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.hero-service-item small {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: #cbd3e0;
}

.btn-outline:hover {
  background: #f4f6fa;
  color: var(--color-primary);
  border-color: #cbd3e0;
  box-shadow: none;
}

/* Hero visual — phone / search / social mockups */

.hero-visual {
  position: relative;
  padding-bottom: 30px;
}

.mock-phone {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 260px;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 50px rgba(16, 32, 63, 0.18);
  transform: rotate(-6deg);
}

.mock-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-blue { background: #4285f4; }
.dot-red { background: #ea4335; }
.dot-yellow { background: #fbbc05; }
.dot-green { background: #34a853; }

.mock-search-text {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #eef0f4;
}

.mock-ad-tag {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: 1px 6px;
  border-radius: 3px;
}

.mock-result-title {
  display: block;
  width: 70%;
  height: 8px;
  border-radius: 4px;
  background: #b9c6dd;
}

.mock-result-line {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #edf0f5;
}

.mock-result-line.short {
  width: 55%;
}

.mock-social {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 24px 50px rgba(16, 32, 63, 0.18);
  transform: rotate(4deg);
}

.mock-social-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mock-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6fed, #8f5bff);
  flex-shrink: 0;
}

.mock-social-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.mock-line {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #edf0f5;
}

.mock-line.name {
  width: 70%;
  background: #b9c6dd;
}

.mock-line.sub {
  width: 45%;
}

.mock-social-media {
  height: 90px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd166, #ef476f 55%, #2f6fed);
  margin-bottom: 10px;
}

.mock-social-actions {
  display: flex;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.mock-dashboard {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(16, 32, 63, 0.2);
}

.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eef0f4;
}

.dashboard-title {
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.dashboard-stat {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-stat span {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-stat i {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent), #8f5bff);
  font-style: normal;
  width: 75%;
}

.dashboard-stat:nth-child(2) i { width: 55%; }
.dashboard-stat:nth-child(3) i { width: 40%; }
.dashboard-stat:nth-child(4) i { width: 88%; }

.dashboard-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-chart {
  flex: 1.5;
  height: 90px;
  width: 100%;
}

.dashboard-donut {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.donut-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#4285f4 0% 45%, #1877f2 45% 75%, #cbd3e0 75% 100%);
  position: relative;
}

.donut-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.66rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.donut-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-google { background: #4285f4; }
.dot-meta { background: #1877f2; }
.dot-other { background: #cbd3e0; }

.dashboard-base {
  display: block;
  width: 55%;
  height: 16px;
  margin: 0 auto;
  background: linear-gradient(180deg, #d6dbe4, #b9c1d1);
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 1;
}

.mock-phone.mini,
.mock-social.mini {
  width: 160px;
  padding: 12px;
  border-radius: 14px;
  z-index: 3;
  top: auto;
}

.mock-phone.mini .mock-search-text {
  font-size: 0.58rem;
}

.mock-phone.mini .mock-result-title {
  height: 6px;
}

.mock-phone.mini .mock-result-line {
  height: 5px;
}

.mock-social.mini .mock-avatar {
  width: 22px;
  height: 22px;
}

.mock-social.mini .mock-social-media {
  height: 56px;
}

.mock-social.mini .mock-social-actions {
  font-size: 0.85rem;
  gap: 10px;
}

.phone-left {
  left: -16px;
  bottom: -10px;
  transform: rotate(-8deg);
}

.phone-right {
  right: -16px;
  bottom: -20px;
  transform: rotate(6deg);
}

/* Decorative background blobs */

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  top: -120px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #2f6fed, transparent 70%);
}

.blob-2 {
  bottom: -140px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #8f5bff, transparent 70%);
}

.blob-3 {
  top: -80px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #2f6fed, transparent 70%);
  opacity: 0.14;
}

.blob-4 {
  bottom: -100px;
  left: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #ef476f, transparent 70%);
  opacity: 0.12;
}

.hero-inner,
#services .container,
#pricing .container {
  position: relative;
  z-index: 1;
}

/* Scroll reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Highlights */

.highlights {
  padding: 64px 0;
  border-bottom: 1px solid #eef0f4;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.highlight h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.highlight p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Sections */

.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section.alt {
  background: var(--color-bg-alt);
}

.section-eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--color-primary);
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  padding: 36px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 32, 63, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 32, 63, 0.12);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
}

.card p {
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-text-muted);
}

.card li {
  margin-bottom: 6px;
}

/* Pricing */

.pricing-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.price-unit {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Project reference cards */

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: #fff;
  padding: 30px 26px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 32, 63, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 32, 63, 0.12);
}

.project-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-card-head h3 {
  margin: 0;
  color: var(--color-primary);
}

.project-budget {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.project-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}

.project-disclaimer {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: 14px;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-num {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.step h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
}

.step p {
  color: var(--color-text-muted);
  margin: 0;
}

/* FAQ */

.faq-list {
  max-width: 720px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-item p {
  color: var(--color-text-muted);
  margin: 12px 0 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-text-muted);
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.mock-chat {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.mock-chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 82%;
  box-shadow: 0 4px 14px rgba(16, 32, 63, 0.06);
}

.bubble-them {
  align-self: flex-start;
  background: #fff;
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.bubble-us {
  align-self: flex-end;
  background: var(--color-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.contact-form {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 32, 63, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid #d6dbe4;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-note {
  color: #1b8a4c;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

/* Legal pages */

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 36px 0 12px;
}

.legal p {
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.legal ul {
  color: var(--color-text-muted);
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .contact-list {
  margin: 0 0 32px;
}

/* Floating LINE button */

.float-line {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06c755;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.4);
  z-index: 200;
  transition: transform 0.15s ease;
}

.float-line:hover {
  transform: scale(1.08);
}

/* Footer */

.site-footer {
  padding: 32px 0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.site-footer a {
  color: #888;
  text-decoration: underline;
  margin-left: 8px;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-service-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    max-width: 380px;
    margin: 40px auto 0;
  }
}

@media (max-width: 480px) {
  .hero-service-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mock-phone.mini,
  .mock-social.mini {
    width: 130px;
    padding: 10px;
  }

  .phone-left {
    left: -8px;
  }

  .phone-right {
    right: -8px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
    flex-direction: column;
    padding: 12px 20px 20px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    margin: 0;
    padding: 10px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .float-line {
    right: 16px;
    bottom: 16px;
  }
}
