/* ==========================================================================
   MI Brothers Tech — Design System & Core Styles
   Mobile-first. Breakpoint overrides live in responsive.css,
   motion/keyframes live in animations.css.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --c-primary: #087D55;
  --c-primary-600: #07704C;
  --c-primary-700: #06603F;
  --c-primary-900: #053D29;
  --c-primary-50: #E6F3ED;
  --c-accent: #25B9A5;
  --c-accent-50: #E3F6F3;
  --c-white: #FFFFFF;
  --c-bg: #F4F8F5;
  --c-highlight: #E8E7A6;
  --c-ink: #202B26;
  --c-muted: #56675F;
  --c-line: #E1EAE4;
  --c-danger: #C2412D;

  --grad-brand: linear-gradient(135deg, #087D55 0%, #25B9A5 100%);
  --grad-dark: linear-gradient(160deg, #04301F 0%, #06603F 55%, #087D55 100%);
  --grad-soft: linear-gradient(180deg, #FFFFFF 0%, #F4F8F5 100%);

  /* Typography */
  --ff-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.15rem, 1rem + .6vw, 1.375rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem);
  --fs-h1: clamp(2.3rem, 1.3rem + 4.4vw, 4.4rem);
  --lh-tight: 1.15;
  --lh-body: 1.65;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --sh-xs: 0 1px 2px rgba(16, 40, 30, .06);
  --sh-sm: 0 1px 2px rgba(16, 40, 30, .05), 0 4px 12px rgba(16, 40, 30, .05);
  --sh-md: 0 8px 28px rgba(16, 40, 30, .08);
  --sh-lg: 0 24px 60px rgba(8, 61, 41, .16);
  --sh-glow: 0 10px 30px rgba(8, 125, 85, .28);

  /* Spacing & layout */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 1200px;
  --gutter: 1.25rem;
  --nav-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .35s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-primary-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--ff-head); line-height: var(--lh-tight); margin: 0 0 var(--sp-4); color: var(--c-ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--sp-4); }
ul { margin: 0; padding: 0; }
::selection { background: var(--c-highlight); color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 2000; background: var(--c-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); position: relative; }
.section--soft { background: var(--c-bg); }
.section--dark { background: var(--grad-dark); color: #DDEDE5; overflow: hidden; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto var(--sp-7); text-align: center; }
.section-head p { color: var(--c-muted); font-size: var(--fs-lg); margin: 0; }
.section--dark .section-head p { color: #B9D6C9; }
.section-head--left { margin-left: 0; text-align: left; }
.grid { display: grid; gap: var(--sp-5); }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--c-muted); }
.lead { font-size: var(--fs-lg); color: var(--c-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-head); font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-primary); background: var(--c-primary-50);
  padding: .4rem .85rem; border-radius: var(--r-pill); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(37, 185, 165, .2); }
.section--dark .eyebrow { background: rgba(255, 255, 255, .08); color: var(--c-highlight); }

.tag-placeholder {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #6B5E00; background: var(--c-highlight); padding: .25rem .6rem; border-radius: var(--r-pill);
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--c-primary); --btn-fg: #fff; --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn i { font-size: 1.05em; transition: transform var(--dur) var(--ease); }
.btn:hover i.bi-arrow-right, .btn:hover i.bi-arrow-up-right { transform: translateX(3px); }
.btn-primary { background: var(--grad-brand); border-color: transparent; box-shadow: var(--sh-glow); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(8, 125, 85, .38); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-primary); }
.btn-outline:hover { --btn-bg: var(--c-primary); --btn-fg: #fff; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--c-primary-700); --btn-bd: #fff; }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .16); }
.btn-whatsapp { --btn-bg: #1FA855; --btn-bd: #1FA855; --btn-fg: #fff; }
.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--fs-sm); font-family: var(--ff-head); }
.link-arrow i { transition: transform var(--dur) var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); border-color: var(--c-line); box-shadow: 0 6px 24px rgba(16, 40, 30, .06); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--c-ink); font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { color: var(--c-ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  box-shadow: var(--sh-glow); position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; width: 12px; height: 12px; right: -3px; top: -3px; border-radius: 50%; background: var(--c-highlight); }
.brand-text b { color: var(--c-primary); font-weight: 700; }

.main-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 999;
  background: #fff; padding: var(--sp-5) var(--gutter) var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-5);
  overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.main-nav a.nav-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem; border-radius: var(--r-md);
  color: var(--c-ink); font-family: var(--ff-head); font-weight: 500; font-size: 1.1rem;
}
.main-nav a.nav-link::after { content: "\F285"; font-family: "bootstrap-icons"; font-size: .9rem; color: var(--c-muted); }
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { background: var(--c-bg); color: var(--c-primary); }
.nav-cta { display: none; }
.nav-cta-mobile { width: 100%; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-line); background: #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(2.5rem, 2rem + 4vw, 5rem)) 0 clamp(4rem, 3rem + 4vw, 6.5rem);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(37, 185, 165, .16), transparent 60%),
    radial-gradient(800px 480px at -10% 30%, rgba(232, 231, 166, .45), transparent 60%),
    var(--grad-soft);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(8, 125, 85, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 125, 85, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; display: grid; gap: var(--sp-7); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .5rem .4rem .45rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--sh-sm); font-size: var(--fs-xs); font-weight: 500; color: var(--c-muted); margin-bottom: var(--sp-5); }
.hero-badge .dot { display: inline-flex; align-items: center; gap: .35rem; background: var(--c-primary-50); color: var(--c-primary); padding: .2rem .6rem; border-radius: var(--r-pill); font-weight: 600; }
.hero-badge .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); animation: pulse-dot 1.8s infinite; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 .word { display: inline-block; }
.hero-intro { font-size: var(--fs-lg); color: var(--c-muted); max-width: 580px; margin-bottom: var(--sp-5); }
.hero-intro strong { color: var(--c-ink); }
.hero-roles { display: flex; align-items: center; gap: .6rem; font-family: var(--ff-head); font-weight: 600; font-size: var(--fs-lg); margin-bottom: var(--sp-6); min-height: 1.8em; flex-wrap: wrap; }
.hero-roles .label { color: var(--c-muted); font-weight: 500; }
.typed { color: var(--c-primary); position: relative; }
.typed-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--c-accent); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px dashed var(--c-line); }
.hero-trust li { list-style: none; display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--c-muted); }
.hero-trust i { color: var(--c-primary); font-size: 1.1rem; }

/* Hero visual composition */
.hero-visual { position: relative; min-height: 420px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb--1 { width: 340px; height: 340px; right: 8%; top: 6%; background: radial-gradient(circle at 30% 30%, #2fd1bb, #087D55 70%); opacity: .95; box-shadow: 0 40px 80px rgba(8, 125, 85, .35); }
.orb--2 { width: 120px; height: 120px; left: 4%; bottom: 8%; background: radial-gradient(circle at 30% 30%, #fffde0, var(--c-highlight)); }
.orb-ring { position: absolute; right: calc(8% - 40px); top: calc(6% - 40px); width: 420px; height: 420px; border-radius: 50%; border: 1px dashed rgba(8, 125, 85, .3); }
.orb-ring::before { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); top: 50%; left: -7px; box-shadow: 0 0 0 6px rgba(37, 185, 165, .2); }

.float-card {
  position: absolute; background: rgba(255, 255, 255, .92); border: 1px solid rgba(225, 234, 228, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 1rem 1.1rem; font-size: var(--fs-xs);
}
.float-card h4 { font-size: .9rem; margin: 0 0 .2rem; }
.float-card .meta { color: var(--c-muted); font-size: .75rem; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); font-size: 1.1rem; flex: none; }
.fc-row { display: flex; align-items: center; gap: .7rem; }

.fc-chat { left: 0; top: 4%; width: 250px; }
.fc-chat .bubble { padding: .55rem .75rem; border-radius: 14px; margin-top: .55rem; line-height: 1.45; }
.fc-chat .bubble.user { background: var(--c-bg); border-bottom-left-radius: 4px; }
.fc-chat .bubble.bot { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; margin-left: 1.5rem; }

.fc-flow { right: 0; bottom: 6%; width: 280px; }
.flow-mini { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }
.flow-mini .node { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line); color: var(--c-primary); font-size: 1.05rem; box-shadow: var(--sh-xs); }
.flow-mini .node.is-ai { background: var(--grad-brand); color: #fff; border: 0; }
.flow-mini .link { flex: 1; height: 2px; margin: 0 4px; background: repeating-linear-gradient(90deg, var(--c-accent) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: flow-dash 1s linear infinite; }
.flow-status { display: flex; align-items: center; gap: .4rem; margin-top: .7rem; color: var(--c-primary); font-weight: 600; font-size: .72rem; }
.flow-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); animation: pulse-dot 1.6s infinite; }

.fc-code { right: 14%; top: 0; width: 230px; background: #0D2A1F; color: #CFE9DE; border-color: #12392A; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .72rem; line-height: 1.6; }
.fc-code .dots { display: flex; gap: 5px; margin-bottom: .55rem; }
.fc-code .dots span { width: 8px; height: 8px; border-radius: 50%; background: #2b5444; }
.fc-code .dots span:first-child { background: var(--c-highlight); }
.fc-code .k { color: #25B9A5; } .fc-code .s { color: #E8E7A6; } .fc-code .c { color: #6f9785; }

.fc-voice { left: 10%; bottom: 0; width: 210px; }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-top: .6rem; }
.mini-wave span { flex: 1; background: var(--grad-brand); border-radius: 3px; height: 30%; animation: wave 1.1s ease-in-out infinite; }
.mini-wave span:nth-child(2n) { animation-delay: -.3s; } .mini-wave span:nth-child(3n) { animation-delay: -.6s; } .mini-wave span:nth-child(5n) { animation-delay: -.85s; }

/* ---------- 7. Tech marquee ---------- */
.marquee { border-block: 1px solid var(--c-line); background: #fff; padding: 1.15rem 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track { display: flex; gap: 2.75rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--ff-head); font-weight: 600; color: #6c7d75; white-space: nowrap; font-size: .95rem; }
.marquee-item i { color: var(--c-primary); font-size: 1.15rem; }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-xs); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: #cfe2d8; }
.icon-box {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.45rem; color: var(--c-primary); background: var(--c-primary-50); margin-bottom: var(--sp-4);
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}

/* Service card */
.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(37, 185, 165, .12), transparent 70%);
  transition: opacity .4s var(--ease);
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover::before { opacity: 1; }
.service-card:hover .icon-box { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-card .num { position: absolute; top: 1.25rem; right: 1.35rem; font-family: var(--ff-head); font-weight: 700; font-size: .8rem; color: #b7c7bf; }
.service-card p { color: var(--c-muted); font-size: var(--fs-sm); flex: 1; }
.service-card .link-arrow { margin-top: auto; }

/* Feature (why choose) */
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature .icon-box { flex: none; margin: 0; }
.feature h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.feature p { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- 9. About ---------- */
.about-grid { display: grid; gap: var(--sp-7); align-items: center; }
.about-visual { position: relative; border-radius: var(--r-xl); background: var(--grad-dark); padding: var(--sp-6); color: #fff; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
.about-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -120px; background: radial-gradient(circle, rgba(37, 185, 165, .55), transparent 70%); }
.about-visual::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.about-visual > * { position: relative; z-index: 1; }
.about-monogram { font-family: var(--ff-head); font-weight: 700; font-size: clamp(5rem, 4rem + 6vw, 9rem); line-height: .9; letter-spacing: -.04em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: var(--sp-4); }
.about-visual .name { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 600; }
.about-visual .role { color: #B9D6C9; }
.about-chip { position: absolute; z-index: 2; background: #fff; color: var(--c-ink); border-radius: var(--r-md); padding: .7rem .9rem; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 600; }
.about-chip i { color: var(--c-primary); font-size: 1.1rem; }
.about-chip--1 { top: 1.5rem; left: 1.5rem; }
.about-chip--2 { top: 5.5rem; right: 1.5rem; }

.check-list { list-style: none; display: grid; gap: .7rem; margin: var(--sp-5) 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: #fff; background: var(--c-primary); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; flex: none; margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin: var(--sp-5) 0; }
.stat { background: var(--c-bg); border-radius: var(--r-md); padding: 1rem 1.1rem; border: 1px solid var(--c-line); }
.stat-num { font-family: var(--ff-head); font-weight: 700; font-size: 1.9rem; color: var(--c-primary); line-height: 1; }
.stat-label { font-size: var(--fs-xs); color: var(--c-muted); margin-top: .35rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-line); font-size: var(--fs-xs); font-weight: 500; color: var(--c-ink); }
.chip i { color: var(--c-primary); }
.section--dark .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #E3F1EA; }
.section--dark .chip i { color: var(--c-accent); }

/* ---------- 10. AI Solutions ---------- */
.ai-bg-lines { position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 26px 26px; }
.ai-layout { display: grid; gap: var(--sp-6); position: relative; }
.ai-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tab {
  flex: none; display: flex; align-items: center; gap: .75rem; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #DDEDE5;
  padding: .85rem 1rem; border-radius: var(--r-md); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.ai-tab i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 1.1rem; color: var(--c-accent); flex: none; }
.ai-tab strong { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: #fff; }
.ai-tab small { display: none; color: #A9C9BB; font-size: .78rem; }
.ai-tab:hover { background: rgba(255, 255, 255, .09); }
.ai-tab[aria-selected="true"] { background: #fff; border-color: #fff; }
.ai-tab[aria-selected="true"] strong { color: var(--c-ink); }
.ai-tab[aria-selected="true"] small { color: var(--c-muted); }
.ai-tab[aria-selected="true"] i { background: var(--grad-brand); color: #fff; }

.ai-panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-xl); padding: var(--sp-5); }
.ai-panel[hidden] { display: none; }
.ai-panel h3 { font-size: 1.4rem; }
.ai-panel p { color: #C3DDD1; }

/* Workflow diagram */
.workflow { position: relative; margin: var(--sp-5) 0; padding: 1rem; border-radius: var(--r-lg); background: rgba(3, 30, 20, .35); border: 1px solid rgba(255, 255, 255, .08); }
.workflow svg { width: 100%; height: auto; overflow: visible; }
.wf-path { fill: none; stroke: rgba(37, 185, 165, .55); stroke-width: 2; stroke-dasharray: 6 7; animation: flow-dash-svg 1.2s linear infinite; }
.wf-node:not(.is-ai) rect { fill: #0F3A2A; stroke: rgba(255, 255, 255, .16); }
.wf-node.is-ai rect { stroke: none; }
.wf-node text { fill: #E6F3ED; font-family: var(--ff-head); font-size: 13px; font-weight: 600; }
.wf-node .sub { fill: #8FB8A6; font-family: var(--ff-body); font-size: 10.5px; font-weight: 500; }
.wf-node.is-ai .sub { fill: #DFF7F2; }
.wf-pulse { fill: var(--c-highlight); filter: drop-shadow(0 0 6px rgba(232, 231, 166, .9)); }

.workflow-steps { list-style: none; display: grid; gap: .6rem; counter-reset: wf; }
.workflow-steps li { counter-increment: wf; display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); color: #CFE6DB; }
.workflow-steps li::before { content: counter(wf); width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(37, 185, 165, .18); color: var(--c-accent); font-weight: 700; font-size: .78rem; font-family: var(--ff-head); }

/* Light-section flow chips (inner pages) */
.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: var(--sp-4) 0; }
.flow-chips .fchip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 10px; background: #fff; border: 1px solid var(--c-line); font-size: .8rem; font-weight: 600; }
.flow-chips .fchip i { color: var(--c-primary); }
.flow-chips .fchip.is-ai { background: var(--grad-brand); color: #fff; border: 0; }
.flow-chips .fchip.is-ai i { color: #fff; }
.flow-chips .arrow { color: var(--c-accent); font-size: 1rem; animation: nudge 1.4s ease-in-out infinite; }

/* ---------- 11. Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: var(--sp-6); }
.filter-btn { border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); padding: .6rem 1.1rem; border-radius: var(--r-pill); font-family: var(--ff-head); font-weight: 500; font-size: var(--fs-xs); transition: all .3s var(--ease); }
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn[aria-pressed="true"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: var(--sh-glow); }

.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-card.is-hidden { display: none; }
.project-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb .tag-placeholder { position: absolute; top: .9rem; left: .9rem; }
.project-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: .75rem; font-weight: 600; color: var(--c-accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.project-body p { color: var(--c-muted); font-size: var(--fs-sm); flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: var(--sp-4); }
.project-tech span { font-size: .72rem; padding: .2rem .55rem; border-radius: 6px; background: var(--c-bg); color: var(--c-muted); font-weight: 500; }

/* ---------- 12. Timeline (process) ---------- */
.timeline { position: relative; list-style: none; display: grid; gap: var(--sp-5); padding-left: 2.75rem; margin: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 1.05rem; top: .5rem; width: 3px; border-radius: 3px; }
.timeline::before { bottom: .5rem; background: var(--c-line); }
.timeline::after { height: calc((100% - 1rem) * var(--tl-progress-num, 0)); background: var(--grad-brand); }
.timeline-item { position: relative; }
.timeline-dot { position: absolute; left: -2.75rem; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff; border: 3px solid var(--c-primary); display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: .8rem; color: var(--c-primary); box-shadow: 0 0 0 6px var(--c-white); transition: background .4s, color .4s; }
.section--soft .timeline-dot { box-shadow: 0 0 0 6px var(--c-bg); }
.timeline-item.is-active .timeline-dot { background: var(--c-primary); color: #fff; }
.timeline-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.15rem 1.3rem; box-shadow: var(--sh-xs); }
.timeline-card h3 { font-size: 1.08rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .55rem; }
.timeline-card h3 i { color: var(--c-accent); }
.timeline-card p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

/* ---------- 13. Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: var(--sp-4); }
.testimonial .quote-icon { font-size: 2rem; color: var(--c-accent); line-height: 1; }
.testimonial blockquote { margin: 0; font-size: var(--fs-base); color: var(--c-ink); flex: 1; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: .75rem; padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.avatar-ph { width: 46px; height: 46px; border-radius: 50%; background: var(--c-bg); border: 2px dashed #c6d6ce; display: grid; place-items: center; color: #9db1a7; font-size: 1.2rem; flex: none; }
.who strong { display: block; font-family: var(--ff-head); font-size: .95rem; }
.who small { color: var(--c-muted); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r-md); background: #FBFBEA; border: 1px solid #E8E7A6; color: #5d5822; font-size: var(--fs-sm); max-width: 760px; margin: var(--sp-6) auto 0; }
.notice i { font-size: 1.15rem; color: #8A8326; margin-top: 1px; }

/* ---------- 14. CTA band ---------- */
.cta-band { border-radius: var(--r-xl); background: var(--grad-dark); color: #fff; padding: clamp(2rem, 1.5rem + 3vw, 4rem); position: relative; overflow: hidden; display: grid; gap: var(--sp-5); align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, rgba(37, 185, 165, .5), transparent 65%); }
.cta-band::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: -60px; bottom: -110px; background: radial-gradient(circle, rgba(232, 231, 166, .35), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: #C3DDD1; margin: 0; font-size: var(--fs-lg); }

/* ---------- 15. Forms & contact ---------- */
.contact-grid { display: grid; gap: var(--sp-6); }
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--sh-md); }
.form-grid { display: grid; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field label .req { color: var(--c-danger); }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--c-line); background: var(--c-bg); border-radius: var(--r-md);
  padding: .85rem 1rem; font-size: var(--fs-base); transition: border-color .25s, background .25s, box-shadow .25s; min-height: 50px;
}
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23087D55' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 4px rgba(8, 125, 85, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-danger); background: #fff8f6; }
.field-error { color: var(--c-danger); font-size: var(--fs-xs); min-height: 1em; }
.form-note { font-size: var(--fs-xs); color: var(--c-muted); display: flex; gap: .4rem; align-items: flex-start; }
.form-status { display: none; border-radius: var(--r-md); padding: 1rem 1.15rem; font-size: var(--fs-sm); }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--c-primary-50); color: var(--c-primary-900); border: 1px solid #bfe0d1; }
.form-status .btn-row { margin-top: .75rem; }

.contact-info { display: grid; gap: var(--sp-4); align-content: start; }
.contact-item { display: flex; gap: var(--sp-4); align-items: center; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.contact-item:hover { transform: translateX(4px); box-shadow: var(--sh-md); color: var(--c-ink); border-color: #cfe2d8; }
.contact-item .icon-box { margin: 0; width: 48px; height: 48px; font-size: 1.25rem; flex: none; }
.contact-item small { display: block; color: var(--c-muted); font-size: .78rem; }
.contact-item strong { font-family: var(--ff-head); font-weight: 600; font-size: .98rem; word-break: break-word; }
.contact-item.is-wa .icon-box { background: #E3F6EA; color: #1FA855; }

/* ---------- 16. Inner page hero ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  background: radial-gradient(900px 400px at 90% -20%, rgba(37, 185, 165, .18), transparent 60%), radial-gradient(700px 360px at 0% 120%, rgba(232, 231, 166, .45), transparent 60%), var(--grad-soft);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--c-line);
}
.page-hero .hero-grid-bg { opacity: .45; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); max-width: 860px; }
.page-hero p { max-width: 680px; font-size: var(--fs-lg); color: var(--c-muted); margin: 0; }
.breadcrumb { display: flex; gap: .45rem; list-style: none; font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: #b6c6be; }

/* ---------- 17. Service detail (services page) ---------- */
.service-detail { display: grid; gap: var(--sp-5); padding: var(--sp-6) 0; border-bottom: 1px solid var(--c-line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail .head { display: flex; gap: var(--sp-4); align-items: flex-start; }
.service-detail .icon-box { margin: 0; flex: none; }
.service-detail h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .4rem; }
.service-detail .includes { background: var(--c-bg); border-radius: var(--r-lg); padding: var(--sp-5); }
.service-detail .includes h3 { font-size: 1rem; }
.service-detail .includes .check-list { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.service-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: thin; }
.service-nav a { flex: none; padding: .5rem .9rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-line); font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink); }
.service-nav a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.sticky-subnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(244, 248, 245, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }

/* ---------- 18. Pricing ---------- */
.price-card { display: flex; flex-direction: column; padding: var(--sp-6); }
.price-card.is-featured { border: 2px solid var(--c-primary); box-shadow: var(--sh-lg); }
.price-card .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .85rem; border-radius: var(--r-pill); white-space: nowrap; }
.price-card .tier { font-family: var(--ff-head); font-weight: 600; color: var(--c-primary); margin-bottom: .25rem; }
.price-card .price { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; margin: .5rem 0 .25rem; }
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--c-muted); }
.price-card .check-list { font-size: var(--fs-sm); flex: 1; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: .95rem 1.15rem; border-bottom: 1px solid var(--c-line); }
.table th { background: var(--c-bg); font-family: var(--ff-head); font-weight: 600; font-size: .85rem; }
.table tr:last-child td { border-bottom: 0; }
.table td i { color: var(--c-primary); margin-right: .45rem; }

/* ---------- 19. FAQ accordion ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.1rem 1.25rem; font-family: var(--ff-head); font-weight: 600; font-size: 1rem; }
.faq-q i { transition: transform .3s var(--ease); color: var(--c-primary); flex: none; }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.25rem 1.15rem; margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- 20. Blog ---------- */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card .project-thumb { aspect-ratio: 16 / 9; }
.blog-meta { display: flex; gap: .75rem; font-size: .75rem; color: var(--c-muted); margin-bottom: .5rem; flex-wrap: wrap; }
.blog-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.newsletter { display: grid; gap: var(--sp-4); }
.newsletter-form { display: flex; flex-direction: column; gap: .6rem; }

/* ---------- 21. Footer ---------- */
.site-footer { background: #062B1D; color: #A9C9BB; padding: var(--sp-8) 0 var(--sp-5); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -220px; top: -260px; background: radial-gradient(circle, rgba(37, 185, 165, .22), transparent 65%); }
.site-footer .container { position: relative; }
.footer-grid { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .brand { color: #fff; }
.site-footer .brand-text b { color: var(--c-accent); }
.site-footer p { font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 340px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: var(--sp-4); }
.footer-links { list-style: none; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.footer-links a { color: #A9C9BB; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact i { color: var(--c-accent); margin-top: 2px; }
.socials { display: flex; gap: .5rem; margin-top: var(--sp-4); }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #DDEDE5; border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--c-primary); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; flex-direction: column; gap: .5rem; padding-top: var(--sp-5); font-size: var(--fs-xs); }

/* ---------- 22. Utility widgets ---------- */
.toast-region { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 3000; display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--c-ink); color: #fff; padding: .85rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: var(--fs-sm); display: flex; gap: .6rem; align-items: flex-start; animation: toast-in .35s var(--ease); }
.toast i { color: var(--c-highlight); margin-top: 1px; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }

.back-to-top { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; color: var(--c-primary); box-shadow: var(--sh-md); display: grid; place-items: center; font-size: 1.15rem; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.page-transition { position: fixed; inset: 0; z-index: 5000; pointer-events: none; background: var(--c-primary-900); transform: scaleY(0); transform-origin: bottom; }
.page-transition.is-active { animation: page-cover .38s var(--ease) forwards; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0); z-index: 1100; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2500; display: none; align-items: flex-end; justify-content: center; padding: 0; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 30, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .3s; }
.modal-dialog { position: relative; background: #fff; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--sp-6) var(--sp-5); animation: sheet-up .4s var(--ease); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.modal-dialog img { border-radius: var(--r-lg); margin-bottom: var(--sp-5); width: 100%; }
.tag-placeholder.tag-real { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(8, 125, 85, .3); }
.modal-dialog h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
