@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --page: #ffffff;
  --ink: #172033;
  --muted: #5f6878;
  --muted-strong: #384152;
  --accent: #0866ff;
  --accent-hover: #0758d8;
  --focus: #0866ff;
  --selection: #d9e8ff;
  --selection-ink: #172033;
  --surface: #edf4ff;
  --nav-line: #e6e9ee;
  --nav-ink: #283142;
  --control-line: #d9dee7;
  --control-bg: #ffffff;
  --button-ink: #ffffff;
  --button-shadow: 0 10px 24px rgba(8, 102, 255, .18);
  --button-shadow-hover: 0 14px 30px rgba(8, 102, 255, .24);
  --chip-bg: #ffffff;
  --chip-line: #e1e5eb;
  --chip-ink: #172033;
  --chip-muted: #758094;
  --chip-shadow: 0 18px 50px rgba(35, 48, 73, .12);
  --card-bg: #ffffff;
  --card-line: #e2e6ec;
  --card-line-hover: #a8c8fa;
  --card-ink: #172033;
  --card-muted: #687284;
  --card-number: #9ba5b5;
  --card-shadow-hover: 0 20px 50px rgba(40, 57, 85, .1);
  --icon-bg: #e8f1ff;
  --cta-bg: #172033;
  --cta-ink: #ffffff;
  --cta-muted: #c8d0dc;
  --footer-line: #e4e7eb;
  --footer-ink: #172033;
  --footer-muted: #697385;
  --mobile-menu-bg: #ffffff;
  --mobile-menu-ink: #172033;
  --mobile-menu-line: #e4e7eb;
  --font-body: "DM Sans", "Noto Sans TC", "Noto Sans KR", "Noto Sans JP", "Noto Sans Thai", sans-serif;
  --font-display: var(--font-body);
  --page-max: 1360px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
}

body {
  background: var(--page);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.site-header {
  position: relative;
  background: rgba(255, 255, 255, .96);
}

.nav-wrap {
  min-height: 80px;
}

.brand img {
  width: 130px;
}

.desktop-nav {
  gap: 24px;
}

.desktop-nav a {
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav a::after {
  bottom: -7px;
  height: 1px;
}

.nav-actions {
  gap: 10px;
}

.lang-select,
.menu-toggle,
.button,
.social-list a {
  border-radius: 6px;
}

.button {
  min-height: 50px;
  letter-spacing: 0;
}

.button-small {
  min-height: 42px;
}

.button-secondary {
  border-color: #cdd4df;
  background: #fff;
}

.hero {
  min-height: 720px;
  padding-top: 0;
  background: #f7f9fc;
}

.hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr);
  gap: clamp(48px, 7vw, 106px);
  min-height: 720px;
}

.hero-copy {
  padding-block: 72px;
}

.eyebrow,
.section-kicker {
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.eyebrow::before,
.section-kicker::before {
  width: 18px;
  height: 2px;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(58px, 6.8vw, 98px);
  line-height: .98;
}

.hero-copy > p {
  max-width: 580px;
  margin-top: 28px;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.68;
}

.hero-actions {
  margin-top: 34px;
}

.platform-row {
  gap: 0;
  margin-top: 40px;
}

.platform-row span {
  padding: 7px 12px;
  border: 0;
  border-right: 1px solid #d8dde5;
  border-radius: 0;
  color: #6d7686;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
}

.platform-row span:first-child {
  padding-left: 0;
}

.platform-row span:last-child {
  border-right: 0;
}

.hero-visual {
  min-height: 650px;
}

.tech-window {
  position: absolute;
  inset: 50px 0 38px 5%;
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #e8f1ff;
  box-shadow: 0 30px 70px rgba(38, 59, 94, .1);
}

.tech-window::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 48px;
  border-bottom: 1px solid #d5e0ee;
  content: "";
  background: #fff;
}

.tech-window::after {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: #ff665f;
  box-shadow: 18px 0 #f7c94b, 36px 0 #38b487;
}

.tech-device {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: -18%;
  width: min(76%, 500px);
  filter: drop-shadow(0 28px 32px rgba(29, 44, 70, .16));
  animation: tech-float 7s ease-in-out infinite;
}

@keyframes tech-float {
  50% { transform: translateY(-10px); }
}

.info-chip {
  border-radius: 6px;
  backdrop-filter: none;
}

.tech-chip-a {
  top: 20%;
  left: -2%;
}

.tech-chip-b {
  right: -3%;
  bottom: 16%;
}

.tech-node {
  position: absolute;
  z-index: 3;
  top: 15%;
  right: 4%;
  width: 72px;
  height: 72px;
  border: 14px solid #fff;
  border-radius: 50%;
  background: #0866ff;
  box-shadow: 0 12px 30px rgba(8, 102, 255, .2);
}

.section {
  border-top: 1px solid #edf0f4;
}

.tech-about {
  background: #ffffff;
  color: var(--ink);
}

.tech-about .about-copy > p {
  color: var(--muted);
}

.tech-about .media-frame,
.tech-strategy .strategy-visual {
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(38, 53, 78, .1);
}

.tech-about .media-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .15);
  pointer-events: none;
}

.tech-strategy {
  background: #f7f9fc;
}

.tech-strategy .strategy-visual img {
  object-position: 57% center;
}

.tech-strategy .info-chip {
  bottom: 28px;
  left: 28px;
}

.tech-formats {
  background: #fff;
}

.section-heading {
  margin-bottom: 56px;
}

.formats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.format-card,
.format-card:nth-child(1),
.format-card:nth-child(2),
.format-card:nth-child(3),
.format-card:nth-child(4) {
  grid-column: auto;
  min-height: 370px;
  padding: 30px;
  border-radius: 8px;
  color: var(--card-ink);
  background: #fff;
  --card-muted: #687284;
  --card-number: #9ba5b5;
  --icon-bg: #e8f1ff;
}

.format-card:nth-child(2) {
  background: #f4f8ff;
}

.format-card:nth-child(3) {
  background: #f4faf7;
}

.format-card:nth-child(4) {
  background: #faf7f3;
}

.format-card:hover {
  transform: translateY(-5px);
}

.format-icon {
  border-radius: 6px;
}

.format-icon img,
.tech-formats .format-card:nth-child(2) .format-icon img {
  filter: invert(35%) sepia(91%) saturate(4068%) hue-rotate(213deg) brightness(100%);
}

.format-card h3 {
  margin-top: 44px;
  font-size: clamp(26px, 2.4vw, 36px);
}

.format-card p {
  font-size: 14px;
}

.final-cta {
  padding-top: 0;
  background: #fff;
}

.cta-panel {
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  min-height: 590px;
  border-radius: 8px;
  background: #172033;
}

.cta-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 43%;
  height: 100%;
  content: "";
  background: #e8f1ff;
}

.cta-panel::after {
  position: absolute;
  top: 52px;
  right: 5%;
  width: 32%;
  height: 72%;
  border: 1px solid #cddcf0;
  border-radius: 8px;
  content: "";
  background: #fff;
}

.cta-copy .section-kicker {
  color: #8bb9ff;
}

.cta-visual {
  z-index: 2;
  right: 3%;
  bottom: -39%;
  width: min(42%, 525px);
  filter: drop-shadow(0 24px 30px rgba(34, 48, 70, .16));
}

.site-footer {
  background: #fff;
}

.footer-group h3 {
  letter-spacing: 0;
}

.mobile-menu nav a {
  letter-spacing: 0;
}

@media (max-width: 1179px) {
  .site-header {
    position: relative;
  }
}

@media (max-width: 1060px) {
  .formats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding-block: 64px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .tech-window {
    inset: 22px 8% 28px;
  }

  .tech-device {
    right: 22%;
    width: 56%;
  }

  .tech-chip-a {
    left: 7%;
  }

  .tech-chip-b {
    right: 7%;
  }

  .cta-panel::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 42%;
  }

  .cta-panel::after {
    top: auto;
    right: 12%;
    bottom: 30px;
    width: 76%;
    height: 34%;
  }

  .cta-visual {
    right: 26%;
    width: 48%;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 70px;
  }

  .brand img {
    width: 112px;
  }

  .hero-copy {
    padding-block: 48px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .platform-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-row span {
    padding: 8px;
  }

  .platform-row span:first-child {
    padding-left: 8px;
  }

  .platform-row span:nth-child(2) {
    border-right: 0;
  }

  .hero-visual {
    min-height: 490px;
  }

  .tech-window {
    inset: 16px 0 20px;
  }

  .tech-device {
    right: 7%;
    bottom: -8%;
    width: 80%;
  }

  .tech-chip-a {
    top: 19%;
    left: 0;
  }

  .tech-chip-b {
    right: 0;
    bottom: 12%;
  }

  .tech-node {
    display: none;
  }

  .info-chip {
    max-width: 180px;
    padding: 13px 14px;
  }

  .info-chip strong {
    font-size: 12px;
  }

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

  .format-card,
  .format-card:nth-child(1),
  .format-card:nth-child(2),
  .format-card:nth-child(3),
  .format-card:nth-child(4) {
    min-height: 320px;
  }

  .cta-panel {
    min-height: 720px;
  }

  .cta-panel::before {
    height: 38%;
  }

  .cta-panel::after {
    right: 7%;
    bottom: 24px;
    width: 86%;
    height: 31%;
  }

  .cta-visual {
    right: 13%;
    bottom: -14%;
    width: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-device {
    animation: none;
  }
}

/* Facebook-inspired brand layer */
:root {
  --page: #f0f2f5;
  --ink: #1c2b33;
  --muted: #65676b;
  --muted-strong: #4b4f56;
  --accent: #1877f2;
  --accent-hover: #0d65d9;
  --surface: #e4e6eb;
  --nav-line: #d9dce1;
  --nav-ink: #1c2b33;
  --control-line: #ccd0d5;
  --button-shadow: 0 8px 18px rgba(24, 119, 242, .2);
  --button-shadow-hover: 0 12px 24px rgba(24, 119, 242, .28);
  --chip-line: #d9dce1;
  --chip-ink: #1c2b33;
  --chip-muted: #65676b;
  --chip-shadow: 0 12px 28px rgba(28, 43, 51, .14);
  --card-line: #d9dce1;
  --card-line-hover: #8ab4f8;
  --card-ink: #1c2b33;
  --card-muted: #65676b;
  --icon-bg: #e7f3ff;
  --cta-bg: #1877f2;
  --footer-line: #d9dce1;
  --footer-ink: #1c2b33;
  --footer-muted: #65676b;
  --mobile-menu-bg: #f0f2f5;
  --mobile-menu-ink: #1c2b33;
  --mobile-menu-line: #d9dce1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

.site-header { background: #fff; box-shadow: 0 1px 3px rgba(28, 43, 51, .08); }
.button, .lang-select, .menu-toggle, .social-list a { border-radius: 999px; }
.hero { background: #eaf3ff; }
.hero-visual { background: #eaf3ff; }
.tech-window { border-color: #cbd8e8; border-radius: 16px; background: #dbeafe; box-shadow: 0 24px 60px rgba(24, 69, 129, .15); }
.tech-window::before { border-color: #cbd8e8; }
.tech-window::after { background: #1877f2; box-shadow: 18px 0 #42b72a, 36px 0 #f7b928; }
.tech-node { border-width: 10px; background: #1877f2; box-shadow: 0 12px 30px rgba(24, 119, 242, .25); }
.tech-about { background: #fff; }
.tech-strategy { background: #f0f2f5; }
.format-card:nth-child(2) { background: #eaf3ff; }
.format-card:nth-child(3) { background: #edf8e8; }
.format-card:nth-child(4) { background: #fff8e1; }
.cta-panel { background: #1877f2; }
.cta-panel::before { background: #dbeafe; }
.cta-copy .section-kicker { color: #e7f3ff; }
.tech-device {
  right: 6%;
  bottom: -2%;
  width: min(78%, 600px);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.cta-visual {
  right: 4%;
  bottom: 1%;
  width: min(40%, 500px);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 900px) {
  .tech-device { right: 12%; bottom: 0; width: 66%; }
  .cta-visual { right: 22%; bottom: 0; width: 52%; }
}

@media (max-width: 640px) {
  .tech-device { right: 2%; bottom: 0; width: 88%; }
  .cta-visual { right: 12%; bottom: 0; width: 72%; }
}
