/* ============================================
   Micosse Design System
   ============================================ */

/* === 1. Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');

/* === 2. Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-weight: 400;
}
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === 3. CSS Custom Properties === */
:root {
  /* Amber palette */
  --amber: #92400e;
  --amber-dark: #78350f;
  --amber-mid: #d97706;
  --amber-light: #d4a050;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;

  /* Surfaces */
  --bg: #fefcfb;
  --bg-alt: #faf8f7;

  /* Text */
  --text: #1c1917;
  --text-secondary: #78716c;
  --text-muted: #a8a29e;

  /* Dark */
  --dark: #1c1917;

  /* Border */
  --border: #f0eeec;
  --border-light: #f5f5f4;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-3xl: 32px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 16px 48px rgba(146, 64, 14, 0.06);
  --shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.06);
  --shadow-amber: 0 12px 32px rgba(146, 64, 14, 0.2);
  --shadow-amber-lg: 0 12px 40px rgba(146, 64, 14, 0.35);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Font weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;
}

/* === 4. Typography === */
h1, h2, h3, h4 {
  font-weight: var(--weight-black);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
}
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -2px; }
h2 { font-size: 40px; }
h3 { font-size: 36px; }
h4 { font-size: 20px; letter-spacing: -0.3px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.section-label {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-size: 40px;
  font-weight: var(--weight-black);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* === 5. Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-2xl);
}
.page-content {
  padding-top: 80px;
}

/* === 6. Nav === */
.nav {
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254, 252, 251, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span {
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-black);
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--text); }
.nav-contact {
  background: var(--dark);
  color: var(--bg) !important;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  font-size: 13px;
  transition: background var(--transition-fast);
}
.nav-contact:hover { background: var(--amber) !important; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-normal);
}
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav menu */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 100px 48px 48px;
  gap: 24px;
  z-index: 99;
}
.nav-links.active a {
  font-size: 24px;
  font-weight: var(--weight-bold);
  color: var(--text);
  text-decoration: none;
}

/* === 7. Buttons === */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}
.btn-main:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber);
}
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #57534e;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.btn-line:hover { color: var(--amber); }
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}
.btn-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber-lg);
}

/* === 8. Hero === */
.hero {
  min-height: 100vh;
  padding: 140px 48px 100px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(251, 191, 36, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(217, 119, 6, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(146, 64, 14, 0.04), transparent),
    var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.shape { position: absolute; border-radius: 50%; }
.shape-1 {
  width: 400px; height: 400px; top: 5%; right: -5%;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.05));
  filter: blur(2px);
}
.shape-2 {
  width: 200px; height: 200px; bottom: 15%; left: 8%;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(253, 224, 71, 0.05));
  filter: blur(1px);
}
.shape-3 {
  width: 120px; height: 120px; top: 20%; left: 35%;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.08), rgba(217, 119, 6, 0.03));
  filter: blur(1px);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.hero-mark { position: absolute; top: 8%; right: 12%; opacity: 0.06; }
.hero-mark svg { width: 280px; height: 280px; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: #57534e;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-mid);
  animation: pulse 2s infinite;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .amber { color: var(--amber); }
.hero h1 .outline { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.hero-desc {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }

/* Hero illustration / showcase card */
.hero-illust { position: relative; }
.hero-showcase {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.showcase-header {
  padding: 16px 20px;
  background: #fafaf9;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 6px;
  align-items: center;
}
.showcase-dot { width: 10px; height: 10px; border-radius: 50%; }
.showcase-body { padding: 28px; }
.showcase-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: background var(--transition-fast);
}
.showcase-row:hover { background: var(--amber-50); }
.showcase-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.showcase-info { flex: 1; }
.showcase-label { font-size: 14px; font-weight: var(--weight-bold); margin-bottom: 2px; }
.showcase-sub { font-size: 12px; color: var(--text-muted); }
.showcase-status {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
}
.hero-float-1 { top: -20px; right: -16px; display: flex; align-items: center; gap: 10px; }
.hero-float-1 .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-float-2 { bottom: -16px; left: -20px; }
.hero-float-2 .stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }

/* === 9. Marquee === */
.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}
.marquee-item {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: #d6d3d1;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.marquee-item::before {
  content: '\25C6';
  color: var(--amber-mid);
  font-size: 8px;
}

/* === 10. About Section === */
.about {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-card {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-radius: var(--radius-2xl);
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.about-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.about-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 72px;
  font-weight: var(--weight-black);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}
.about-card-text {
  font-size: 20px;
  font-weight: var(--weight-bold);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.about-card-sub {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.about-label {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.about-heading {
  font-size: 36px;
  font-weight: var(--weight-black);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}
.about-stats { display: flex; gap: 40px; }
.stat { text-align: center; }
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: var(--weight-black);
  color: var(--amber);
  letter-spacing: -2px;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* === 11. Services === */
.services { padding: 120px 48px; background: var(--bg-alt); }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 64px; }
.s-label {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.s-heading {
  font-size: 40px;
  font-weight: var(--weight-black);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.s-desc { font-size: 16px; color: var(--text-secondary); }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  min-height: 320px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all var(--transition-smooth);
}
.s-card:hover {
  border-color: var(--amber-200);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.s-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--amber-light);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.s-card-name {
  font-size: 20px;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.s-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.s-illust {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.35;
  transition: all var(--transition-smooth);
}
.s-card:hover .s-illust {
  opacity: 0.55;
  transform: translateY(-4px);
}

/* Service card illustration elements -- amber tones */
.ai-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ai-node {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--amber-50);
  border: 1.5px solid var(--amber-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-node.on { background: var(--amber-100); border-color: var(--amber-200); }
.ai-node svg {
  width: 14px;
  height: 14px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-line { width: 20px; height: 1.5px; background: var(--amber-200); align-self: center; }
.phone {
  width: 90px;
  height: 150px;
  border-radius: 18px;
  background: var(--amber-50);
  border: 2px solid var(--amber-100);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  position: relative;
}
.phone-notch { width: 28px; height: 4px; border-radius: 2px; background: var(--amber-200); }
.phone-block { width: 100%; border-radius: 6px; background: var(--amber-100); }
.phone-bar {
  position: absolute;
  bottom: 8px;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber-mid);
}
.browser {
  width: 130px;
  height: 85px;
  border-radius: var(--radius-sm);
  background: var(--amber-50);
  border: 2px solid var(--amber-100);
  overflow: hidden;
}
.browser-bar {
  height: 18px;
  background: #fefce8;
  border-bottom: 1px solid var(--amber-100);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 3px;
}
.browser-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-mid);
}
.browser-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.browser-ln { height: 3px; border-radius: 2px; background: var(--amber-100); }
.browser-ln.hl { background: var(--amber-light); }
.chat-b {
  padding: 7px 12px;
  font-size: 10px;
  max-width: 120px;
  line-height: 1.4;
}
.chat-l {
  background: var(--amber-50);
  border-radius: 12px 12px 12px 4px;
  color: var(--amber-dark);
  border: 1px solid var(--amber-100);
}
.chat-r {
  background: var(--amber);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
}
.illust-line { display: flex; flex-direction: column; gap: 5px; }
.mkt-bars { display: flex; gap: 4px; align-items: flex-end; height: 80px; }
.mkt-bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: var(--amber-100);
}
.mkt-bar.hi { background: var(--amber-light); }
.sys-chain { display: flex; align-items: center; gap: 8px; }
.sys-node {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--amber-50);
  border: 1.5px solid var(--amber-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sys-node svg {
  width: 16px;
  height: 16px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sys-dash {
  width: 16px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--amber-mid) 0, var(--amber-mid) 4px, transparent 4px, transparent 8px);
}

/* === 12. Cases === */
.cases { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.cases-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.cases-heading { font-size: 40px; font-weight: var(--weight-black); letter-spacing: -1px; }
.cases-link {
  font-size: 14px;
  color: var(--amber);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.c-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: all var(--transition-smooth);
  cursor: pointer;
}
.c-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.c-thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--amber-mid);
  font-weight: var(--weight-medium);
}
.c-card:first-child .c-thumb { background: linear-gradient(135deg, var(--amber-100), var(--amber-200), var(--amber-100)); }
.c-card:nth-child(2) .c-thumb { background: linear-gradient(135deg, var(--amber-100), var(--amber-50)); }
.c-card:nth-child(3) .c-thumb { background: linear-gradient(135deg, var(--amber-50), var(--amber-100)); }
.c-card:nth-child(4) .c-thumb { background: linear-gradient(135deg, var(--amber-200), var(--amber-100)); }
.c-body { padding: 28px; }
.c-type {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.c-name {
  font-size: 20px;
  font-weight: var(--weight-extrabold);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.c-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* === 13. CTA === */
.cta { padding: 48px; }
.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-3xl);
  position: relative;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  padding: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.cta-orb { position: absolute; border-radius: 50%; }
.cta-orb-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: 5%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12), transparent 70%);
}
.cta-orb-2 {
  width: 150px;
  height: 150px;
  bottom: -40px;
  right: 30%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08), transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-heading {
  font-size: 36px;
  font-weight: var(--weight-black);
  color: var(--bg);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
}
.cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: #fff;
  padding: 18px 36px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber-lg);
}

/* === 14. Footer === */
.footer {
  padding: 64px 48px 32px;
  border-top: 1px solid var(--border-light);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-brand span {
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-black);
  font-size: 18px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #57534e;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--amber); }
.footer-line { height: 1px; background: var(--border-light); margin-bottom: 20px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #d6d3d1;
}

/* === 15. Sub-page Styles === */

/* Page hero -- smaller hero for sub-pages */
.page-hero {
  padding: 160px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(251, 191, 36, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(217, 119, 6, 0.06), transparent),
    var(--bg);
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero .section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}
.page-hero .section-desc {
  max-width: 560px;
  margin: 0 auto;
}

/* Service detail -- alternating service sections */
.service-detail {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-detail .service-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail .service-section:last-child { border-bottom: none; }
.service-detail .service-section:nth-child(even) {
  direction: rtl;
}
.service-detail .service-section:nth-child(even) > * {
  direction: ltr;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

/* Filter tags */
.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-tag:hover {
  border-color: var(--amber-200);
  color: var(--amber);
}
.filter-tag.active {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}

/* Values grid -- about page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 120px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all var(--transition-smooth);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--amber-200);
}
.value-card .value-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--amber-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.value-card .value-title {
  font-size: 18px;
  font-weight: var(--weight-extrabold);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.value-card .value-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Legal pages === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.legal-header {
  margin-bottom: 40px;
}
.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.last-updated {
  font-size: 14px;
  color: var(--text-muted);
}
.legal-text h2 {
  font-size: 20px;
  font-weight: var(--weight-bold);
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.legal-text h3 {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-text ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-text li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}
.legal-text a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-text a:hover {
  color: var(--amber-dark);
}

/* Service detail direct children (simple layout) */
.service-detail h2 {
  font-size: 28px;
  font-weight: var(--weight-extrabold);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.service-detail > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-detail ul {
  margin-bottom: 24px;
  padding-left: 20px;
}
.service-detail li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}
.service-detail + .service-detail {
  border-top: 1px solid var(--border);
}

/* Value card direct children */
.value-card h3 {
  font-size: 18px;
  font-weight: var(--weight-extrabold);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.value-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === 16. Animations === */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.appear {
  opacity: 1;
  transform: none;
}

/* === Services Page — Alternating Layout === */

.service-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-section:nth-child(even) .service-visual { order: -1; }
.service-section + .service-section { border-top: 1px solid #f0eeec; }

.service-num { font-family: 'Inter'; font-size: 12px; font-weight: 700; color: #d4a050; letter-spacing: 2px; margin-bottom: 16px; }
.service-name { font-size: 32px; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.2; }
.service-desc { font-size: 16px; color: #78716c; line-height: 1.9; margin-bottom: 28px; }
.service-features { list-style: none; margin-bottom: 32px; }
.service-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f4;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d97706;
  flex-shrink: 0;
}
.service-features li:last-child { border: none; }

/* Visual cards for each service */
.service-visual {
  background: #fff;
  border: 1px solid #f0eeec;
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marketing dashboard visual */
.sv-mkt { background: #fefcfb; }
.sv-dash { width: 100%; }
.sv-dash-row { display: flex; gap: 12px; margin-bottom: 12px; }
.sv-dash-stat {
  flex: 1; background: #fff; border: 1px solid #f0eeec; border-radius: 14px; padding: 20px;
  text-align: center;
}
.sv-dash-num { font-family: 'Inter'; font-size: 28px; font-weight: 900; color: #92400e; letter-spacing: -1px; }
.sv-dash-label { font-size: 11px; color: #a8a29e; margin-top: 4px; }
.sv-dash-chart { background: #fff; border: 1px solid #f0eeec; border-radius: 14px; padding: 20px; }
.sv-bars { display: flex; gap: 8px; align-items: flex-end; height: 100px; }
.sv-bar { flex: 1; border-radius: 6px 6px 0 0; background: #fef3c7; transition: background 0.3s; }
.sv-bar.hi { background: #d97706; }

/* AI nodes visual */
.sv-ai { background: linear-gradient(160deg, #fffbeb, #fefcfb); }
.sv-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sv-ai-node {
  width: 72px; height: 72px; border-radius: 18px;
  background: #fff; border: 1.5px solid #fef3c7;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.sv-ai-node.on { background: #fef3c7; border-color: #fde68a; }
.sv-ai-node svg { width: 28px; height: 28px; stroke: #92400e; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sv-ai-line { width: 100%; height: 1.5px; background: #fde68a; grid-column: span 3; }

/* Browser mockup visual */
.sv-web { background: #fefcfb; }
.sv-browser { width: 100%; border-radius: 16px; background: #fff; border: 1.5px solid #f0eeec; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.sv-browser-bar { height: 36px; background: #fafaf9; border-bottom: 1px solid #f0eeec; display: flex; align-items: center; padding: 0 14px; gap: 6px; }
.sv-dot { width: 8px; height: 8px; border-radius: 50%; background: #e7e5e4; }
.sv-url { flex: 1; height: 18px; border-radius: 6px; background: #f5f5f4; margin-left: 12px; }
.sv-browser-body { padding: 20px; }
.sv-browser-nav { display: flex; gap: 16px; margin-bottom: 20px; }
.sv-browser-nav span { height: 6px; border-radius: 3px; background: #f0eeec; }
.sv-browser-hero { height: 48px; border-radius: 10px; background: linear-gradient(135deg, #fffbeb, #fef3c7); margin-bottom: 16px; }
.sv-browser-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.sv-browser-card { height: 56px; border-radius: 8px; background: #fafaf9; border: 1px solid #f5f5f4; }

/* Chat visual */
.sv-line { background: linear-gradient(160deg, #fffbeb, #fefcfb); }
.sv-chat { width: 260px; display: flex; flex-direction: column; gap: 10px; }
.sv-msg {
  padding: 12px 18px; font-size: 13px; line-height: 1.5;
  max-width: 220px;
}
.sv-msg-l { background: #fff; border: 1px solid #f0eeec; border-radius: 18px 18px 18px 4px; color: #57534e; }
.sv-msg-r { background: #92400e; color: #fff; border-radius: 18px 18px 4px 18px; align-self: flex-end; }
.sv-msg-time { font-size: 10px; color: #a8a29e; text-align: right; }

/* System integration flow visual */
.sv-sys { background: linear-gradient(160deg, #fffbeb, #fefcfb); }
.sv-flow { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.sv-flow-row { display: flex; align-items: center; gap: 12px; }
.sv-flow-node {
  flex: 1; background: #fff; border: 1.5px solid #f0eeec; border-radius: 14px;
  padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600;
}
.sv-flow-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #fffbeb; border: 1px solid #fef3c7;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sv-flow-icon svg { width: 18px; height: 18px; stroke: #92400e; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-flow-arrow { text-align: center; color: #d4a050; font-size: 18px; }

/* === 17. Responsive === */

/* Tablet */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 24px 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-desc { font-size: 15px; }
  .hero-float-1 { top: -10px; right: -8px; }
  .hero-float-2 { bottom: -10px; left: -10px; }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px;
  }

  .services { padding: 80px 24px; }
  .s-grid { grid-template-columns: 1fr 1fr; }
  .s-heading { font-size: 32px; }

  .cases { padding: 80px 24px; }
  .cases-grid { grid-template-columns: 1fr; }
  .cases-heading { font-size: 32px; }

  .cta { padding: 24px; }
  .cta-box {
    flex-direction: column;
    padding: 48px 32px;
    text-align: center;
    gap: 32px;
  }
  .cta-heading { font-size: 28px; }
  .cta-desc { max-width: 100%; }

  .footer { padding: 48px 24px 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Sub-page responsive */
  .page-hero { padding: 120px 24px 60px; }
  .service-detail { padding: 48px 24px; }
  .service-detail .service-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .service-detail .service-section:nth-child(even) { direction: ltr; }

  /* Services page alternating layout responsive */
  .service-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }
  .service-section:nth-child(even) .service-visual { order: 0; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 80px;
  }
  .filter-tags { padding: 0 24px 32px; }
  .values-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px 80px;
  }

  .section-title { font-size: 32px; }
}

/* Mobile */
@media (max-width: 480px) {
  .nav { padding: 14px 16px; }

  .hero { padding: 100px 16px 48px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-desc { font-size: 14px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-illust { display: none; }

  .shape-1 { width: 200px; height: 200px; }
  .shape-2 { width: 100px; height: 100px; }
  .shape-3 { width: 60px; height: 60px; }
  .hero-mark { display: none; }

  .about {
    padding: 60px 16px;
    gap: 32px;
  }
  .about-heading { font-size: 28px; }
  .about-card { padding: 32px; }
  .about-card-num { font-size: 48px; }
  .about-stats { gap: 24px; }
  .stat-num { font-size: 28px; }

  .services { padding: 60px 16px; }
  .s-grid { grid-template-columns: 1fr; }
  .s-heading { font-size: 28px; }
  .s-card { min-height: 240px; padding: 28px; }

  .cases { padding: 60px 16px; }
  .cases-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cases-heading { font-size: 28px; }

  .cta { padding: 16px; }
  .cta-box { padding: 36px 24px; border-radius: var(--radius-xl); }
  .cta-heading { font-size: 24px; }
  .cta-btn { padding: 14px 28px; font-size: 14px; }

  .footer { padding: 36px 16px 20px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Sub-page mobile */
  .page-hero { padding: 100px 16px 48px; }
  .page-hero .section-title { font-size: 28px; }
  .service-detail { padding: 32px 16px; }
  .service-detail .service-section { padding: 32px 0; }

  /* Services page alternating layout mobile */
  .service-section { padding: 40px 16px; gap: 32px; }
  .service-name { font-size: 26px; }
  .sv-dash-num { font-size: 20px; }
  .sv-dash-row { flex-direction: column; }

  .portfolio-grid { padding: 0 16px 60px; }
  .filter-tags { padding: 0 16px 24px; }
  .values-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 60px;
  }

  .section-title { font-size: 28px; }
  .btn-main { padding: 14px 24px; font-size: 14px; }
}
