/* WebStrategy.ge — public site styles
   Design tokens sampled from the reference design: white surfaces, navy type, #0866FF accent. */

@font-face {
  font-family: "Inter Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Georgian Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/noto-sans-georgian.woff2) format("woff2-variations");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

:root {
  --blue: #0866ff;
  --blue-600: #0055e0;
  --blue-700: #0047bd;
  --blue-50: #eef4ff;
  --blue-100: #e1ecff;
  --blue-200: #c7dbff;
  --navy: #0e1b3d;
  --navy-800: #0b2552;
  --ink: #1b2742;
  --text: #4a5672;
  --muted: #5d6883;
  --line: #e6edf6;
  --line-strong: #d6e0ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --success: #12a150;
  --danger: #d93a3a;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 84, .05);
  --shadow: 0 6px 22px rgba(16, 38, 84, .07);
  --shadow-lg: 0 18px 50px rgba(16, 38, 84, .12);
  --font: "Inter Var", "Noto Georgian Var", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1260px;
  --gutter: 20px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.005em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(8, 102, 255, .45); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.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: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 10px; letter-spacing: .01em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------ buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(8, 102, 255, .22); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(8, 102, 255, .3); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue-200); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-600); background: var(--blue-50); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-600); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-white:hover { border-color: #fff; color: #fff; }
.btn-lg { --h: 58px; padding: 0 34px; font-size: 15px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(16, 38, 84, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 19px; letter-spacing: -.01em; flex: none; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 36px; height: 26px; }
.brand-logo-img { max-height: 36px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 34px; }
.main-nav a {
  position: relative; display: block; padding: 8px 0;
  color: var(--ink); font-weight: 600; font-size: 14px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 34px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang-switch a, .lang-switch span { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: var(--muted); line-height: 1.2; }
.lang-switch [aria-current="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.lang-switch a:hover { color: var(--blue); }
.nav-toggle { display: none; }
.mobile-only { display: none; }

@media (max-width: 1240px) {
  .main-nav ul { gap: 24px; }
  .header-actions { margin-left: 24px; gap: 10px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; margin-right: -8px;
    border: 0; background: transparent; color: var(--navy); cursor: pointer; border-radius: 10px;
  }
  .nav-toggle .icon { width: 26px; height: 26px; }
  .nav-toggle .icon-close { display: none; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .header-actions .btn, .header-actions .lang-switch { display: none; }
  .header-actions { margin: 0; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s .2s;
    border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 16px 2px; font-size: 16px; }
  .main-nav a::after { display: none; }
  .mobile-only { display: block; }
  .main-nav .mobile-actions { display: grid; gap: 14px; margin-top: 24px; }
  .main-nav .mobile-actions .btn { display: inline-flex; padding: 0 24px; color: #fff; font-size: 15px; --h: 52px; }
  .main-nav .mobile-actions .lang-switch a { display: inline-block; padding: 6px 12px; font-size: 14px; color: var(--muted); }
  .main-nav .mobile-actions .lang-switch { justify-self: start; }
  .main-nav .mobile-actions .lang-switch a, .main-nav .mobile-actions .lang-switch span { font-size: 14px; padding: 6px 12px; }
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-scene {
  position: absolute; inset: 0 0 0 34%;
  background:
    radial-gradient(60% 50% at 70% 18%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #eef3f9 0%, #e8eef6 58%, #f3f6fa 58.2%, #f7f9fc 100%);
}
.hero-scene::before { /* soft window light */
  content: ""; position: absolute; top: 0; right: 4%; width: 46%; height: 62%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.0) 0 14%, rgba(255,255,255,.75) 14% 30%, rgba(255,255,255,0) 30% 36%, rgba(255,255,255,.75) 36% 60%, rgba(255,255,255,0) 60% 66%, rgba(255,255,255,.7) 66% 92%, rgba(255,255,255,0) 92%);
  opacity: .9;
}
.hero-scene::after { /* fade into the white text area */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.86) 12%, rgba(255,255,255,0) 40%), linear-gradient(0deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 22%);
}
.hero-plant { position: absolute; right: 1.5%; top: 9%; width: 15%; max-width: 190px; opacity: .9; filter: blur(1.4px); z-index: 1; }
.hero-plant-back { position: absolute; left: 30%; top: 46%; width: 8%; max-width: 95px; opacity: .45; filter: blur(4px); z-index: 1; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 52%); align-items: center; min-height: 600px; }
.hero-copy { padding: 64px 0 72px; }
.hero h1 { font-size: clamp(30px, 2.95vw, 42px); line-height: 1.36; margin-bottom: 22px; font-weight: 800; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 16px; line-height: 1.85; color: var(--text); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-actions .btn-primary { min-width: 236px; }
.hero-actions .btn-outline { min-width: 210px; }
.hero-visual { position: relative; height: 100%; min-height: 520px; }
.hero-visual .devices { position: absolute; right: -5%; bottom: 40px; width: 109%; }
.hero-custom-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ device mockups (pure CSS frames) */
.devices { position: relative; aspect-ratio: 1.6 / 1; }
.laptop { position: absolute; left: 0; bottom: 0; width: 86%; }
.laptop-screen {
  position: relative; margin: 0 7.4%;
  padding: 1.6% 1.6% 2.2%;
  background: linear-gradient(160deg, #2a2f38, #0e1116 55%);
  border-radius: 2.4% 2.4% 0 0 / 3.6% 3.6% 0 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(16,38,84,.35);
}
.laptop-screen::before { content: ""; position: absolute; top: .65%; left: 50%; width: .9%; aspect-ratio: 1; background: #20252c; border-radius: 50%; transform: translateX(-50%); }
.laptop-screen .screen { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #0b1730; }
.laptop-screen .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.4%;
  background: linear-gradient(180deg, #e9edf2 0%, #c9cfd8 45%, #9aa2ae 100%);
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
  box-shadow: 0 22px 34px -10px rgba(16, 38, 84, .38);
}
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%); background: linear-gradient(180deg, #b8bfca, #d9dee5); border-radius: 0 0 10px 10px; }
.phone {
  position: absolute; right: 0; bottom: -1%; width: 20%;
  padding: 1.6%; border-radius: 15% / 7.4%;
  background: linear-gradient(145deg, #3a3f48, #121519 40%, #22262d);
  box-shadow: 0 26px 40px -12px rgba(16,38,84,.45), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone .screen { aspect-ratio: 9 / 19.2; overflow: hidden; border-radius: 12% / 5.6%; background: #0b1730; position: relative; }
.phone .screen::before { content: ""; position: absolute; top: 2.2%; left: 50%; width: 32%; height: 3.2%; background: #0c0e11; border-radius: 20px; transform: translateX(-50%); z-index: 1; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ------------------------------------------------------------ services strip (home) */
.services-strip { padding: 30px 0 34px; }
.services-strip .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.svc-item { display: flex; gap: 16px; align-items: flex-start; color: inherit; }
.svc-item:hover h3 { color: var(--blue); }
.icon-circle {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue);
}
.icon-circle .icon { width: 24px; height: 24px; }
.svc-item h3 { font-size: 14.5px; margin: 4px 0 6px; transition: color .2s; }
.svc-item p { font-size: 13px; line-height: 1.7; margin: 0; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------ project cards */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.project-card .thumb { aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--bg-soft); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .thumb img { transform: scale(1.03); }
.project-card .body { display: flex; align-items: center; gap: 12px; padding: 16px 18px 18px; }
.project-card h3 { font-size: 15px; margin: 0 0 4px; }
.project-card h3 a { color: var(--navy); }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card .meta { font-size: 12.5px; color: var(--muted); margin: 0; }
.circle-arrow {
  margin-left: auto; flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue);
  transition: background .2s, color .2s;
}
.circle-arrow .icon { width: 17px; height: 17px; }
.project-card:hover .circle-arrow { background: var(--blue); color: #fff; }

/* Portfolio page variant: image card without box */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.work-card { position: relative; }
.work-card .thumb { aspect-ratio: 16 / 7.4; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .thumb img { transform: scale(1.03); }
.work-card h2, .work-card h3 { font-size: 19px; margin: 16px 0 4px; }
.work-card h2 a, .work-card h3 a { color: var(--navy); }
.work-card h2 a::after, .work-card h3 a::after { content: ""; position: absolute; inset: 0; }
.work-card:hover h2 a, .work-card:hover h3 a { color: var(--blue); }
.work-card .meta { font-size: 15px; color: var(--muted); margin: 0; }
.work-card[hidden] { display: none; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.pill {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 28px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all .18s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill.is-active, .pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(8,102,255,.24); }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #0a2350 0%, #0f2d62 42%, #1b3f78 62%, #95a9c5 100%);
  color: #fff; min-height: 300px; display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 52%); align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 0 0 44%;
  background: linear-gradient(180deg, rgba(232,238,247,.9) 0%, rgba(214,224,238,.9) 62%, rgba(236,241,248,.95) 62.3%, rgba(244,247,251,.9) 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 34%); mask: linear-gradient(90deg, transparent 0%, #000 34%);
}
.cta-band .copy { position: relative; z-index: 1; padding: 48px 0 48px 56px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.45; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.85; max-width: 470px; margin-bottom: 26px; }
.cta-band .btn-white { min-width: 210px; --h: 54px; }
.cta-band .visual { position: relative; z-index: 1; align-self: end; padding: 24px 40px 26px 20px; }
.cta-band .devices { max-width: 520px; margin-left: auto; }
.cta-band .cta-plant { position: absolute; right: 2%; top: 6%; width: 18%; max-width: 120px; opacity: .85; filter: blur(1.5px); }

/* ------------------------------------------------------------ page headers */
.page-hero { padding: 54px 0 34px; }
.page-hero h1 { font-size: clamp(30px, 3.5vw, 48px); margin-bottom: 14px; }
.page-hero .lead { font-size: 18.5px; line-height: 1.8; color: var(--text); max-width: 600px; margin: 0; }
.page-hero.with-logo h1 { display: flex; align-items: center; gap: 12px; }
.page-hero.with-logo .brand-mark { width: 40px; height: 30px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ service cards (services page) */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px;
}
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 40px 40px 32px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.service-card .icon-circle { width: 76px; height: 76px; margin-bottom: 34px; }
.service-card .icon-circle .icon { width: 34px; height: 34px; }
.service-card h2, .service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card h2 a, .service-card h3 a { color: var(--navy); }
.service-card h2 a::after, .service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { font-size: 16.5px; line-height: 1.85; color: var(--text); margin: 0 0 18px; max-width: 460px; }
.service-card .go { margin-top: auto; align-self: flex-end; color: var(--blue); }
.service-card .go .icon { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .go .icon { transform: translateX(4px); }

/* ------------------------------------------------------------ pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 34px 30px 30px;
}
.plan .plan-name { font-size: 20px; margin: 0 0 16px; font-weight: 700; }
.plan .price { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 4px; letter-spacing: -.01em; }
.plan .price-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; min-height: 1.4em; }
.plan .desc { font-size: 14px; color: var(--text); margin: 0 0 6px; }
.plan ul { list-style: none; display: grid; gap: 16px; margin: 20px 0 40px; }
.plan li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.plan li .icon { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan.is-featured { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 24px 50px -14px rgba(8, 102, 255, .5); transform: translateY(-14px); padding-top: 48px; }
.plan.is-featured .plan-name, .plan.is-featured .price, .plan.is-featured li, .plan.is-featured .desc { color: #fff; }
.plan.is-featured .price-note { color: #fff; }
.plan.is-featured li .icon { color: #fff; }
.plan .badge {
  position: absolute; top: 0; right: 22px; transform: translateY(-50%);
  background: #0050d8; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55); box-shadow: 0 6px 14px rgba(8,102,255,.3);
}
.plan .btn-plan-outline { background: #fff; color: var(--blue); border-color: var(--blue-200); }
.plan .btn-plan-outline:hover { border-color: var(--blue); background: var(--blue-50); }
.plan.is-featured .btn { background: #fff; color: var(--blue); border-color: #fff; box-shadow: none; }
.plan.is-featured .btn:hover { background: var(--blue-50); }

.custom-banner {
  display: flex; align-items: center; gap: 22px; margin-top: 40px;
  background: linear-gradient(90deg, #f1f6ff 0%, #f7faff 100%); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 30px;
}
.custom-banner .icon-circle { width: 64px; height: 64px; background: #fff; box-shadow: var(--shadow); }
.custom-banner h3 { font-size: 17px; margin: 0 0 4px; }
.custom-banner p { margin: 0; font-size: 14px; color: var(--text); }
.custom-banner .btn { margin-left: auto; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; margin-bottom: 30px; }
.contact-list li { display: flex; align-items: center; gap: 18px; color: var(--ink); font-size: 16px; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--blue); }
.contact-list .icon-circle { width: 46px; height: 46px; }
.contact-list .icon-circle .icon { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; color: var(--muted); }
.socials { display: flex; gap: 12px; list-style: none; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue-50); color: var(--navy); transition: all .2s; }
.socials a:hover { background: var(--blue); color: #fff; }
.socials .icon { width: 18px; height: 18px; }
.form-card { padding: 30px; }
.form-card h2, .form-card h3 { font-size: 18px; margin-bottom: 20px; font-weight: 700; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: #98a2b6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,102,255,.12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { font-size: 12.5px; color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--text); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; line-height: 1.6; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert-success { background: #e9f8ef; color: #0f6b3a; border: 1px solid #bfe9cf; }
.alert-error { background: #fdeeee; color: #a42626; border: 1px solid #f6c9c9; }
.captcha { min-height: 0; }

/* ------------------------------------------------------------ prose (CMS content) */
.prose { color: var(--ink); font-size: 17px; line-height: 1.85; max-width: 760px; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--text); font-style: italic; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: #0e1b3d; color: #e7edf9; padding: 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

/* ------------------------------------------------------------ detail pages */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card h2 { font-size: 18px; }
.sidebar-card dl { margin: 0 0 22px; display: grid; gap: 14px; }
.sidebar-card dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sidebar-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.feature-list { list-style: none; display: grid; gap: 12px; margin: 0 0 24px; }
.feature-list li { display: flex; gap: 12px; color: var(--ink); font-size: 15px; }
.feature-list .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
.cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; background: var(--bg-soft); }
.cover img { width: 100%; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 30px; }
.tag-list a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 600; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post-card .meta .cat { color: var(--blue); font-weight: 700; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.45; margin: 0 0 10px; }
.post-card h2 a, .post-card h3 a { color: var(--navy); }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { font-size: 14.5px; margin: 0; color: var(--text); }
.article-head { max-width: 820px; }
.article-head h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.35; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; align-items: center; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-meta .icon { width: 16px; height: 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; list-style: none; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination [aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text); }
.faq .answer p:last-child { margin: 0; }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.testimonial { display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial strong { display: block; color: var(--navy); font-size: 14.5px; }
.testimonial small { color: var(--muted); font-size: 13px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; list-style: none; }
.steps li { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; color: var(--blue); margin-bottom: 10px; }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { font-size: 14px; margin: 0; }

.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); background: var(--bg-soft); }

/* 404 */
.error-page { text-align: center; padding: 90px 0 70px; }
.error-page .code { font-size: clamp(80px, 14vw, 150px); font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -.04em; margin-bottom: 8px; }
.error-page h1 { font-size: clamp(24px, 3vw, 32px); }
.error-page p { max-width: 520px; margin: 0 auto 30px; }
.error-page .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-links { margin-top: 50px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; list-style: none; font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 72px; padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h2 { font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 4px 0; min-height: 28px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--blue); }
.site-footer .about { max-width: 320px; margin: 16px 0 20px; line-height: 1.75; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--blue); margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); }
.home .site-footer { margin-top: 56px; }

/* Skip rendering work for off-screen sections until they are scrolled near */
main > section:not(.hero):not(.page-hero), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 50%) minmax(0, 50%); min-height: 540px; }
  .hero-visual { min-height: 460px; }
  .hero-visual .devices { right: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .projects-grid, .post-grid, .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-strip .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
  .pricing-grid { gap: 16px; }
  .plan { padding: 30px 22px 24px; }
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .sidebar-card { position: static; }
  .contact-grid { gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr 0.9fr; }
  .cta-band .copy { padding-left: 40px; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-scene { inset: auto 0 0 0; height: 420px; }
  .hero-scene::after { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 30%); }
  .hero-copy { padding: 40px 0 8px; }
  .hero-visual { min-height: 0; height: auto; padding: 18px 0 40px; }
  .hero-visual .devices { position: relative; right: auto; bottom: auto; width: 100%; max-width: 640px; margin: 0 auto; }
  .hero-plant-back { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 26px; }
  .plan.is-featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band::before { inset: 52% 0 0 0; -webkit-mask: linear-gradient(180deg, transparent, #000 40%); mask: linear-gradient(180deg, transparent, #000 40%); }
  .cta-band .copy { padding: 36px 28px 8px; }
  .cta-band .visual { padding: 10px 28px 28px; }
  .cta-band .devices { margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr; }
  .work-grid { gap: 28px 20px; }
  .custom-banner { flex-wrap: wrap; }
  .custom-banner .btn { margin-left: 0; }
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 15.5px; }
  .section { padding: 44px 0; }
  .hero h1 { font-size: 27px; line-height: 1.38; }
  .hero-lead { font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; min-width: 0; --h: 52px; }
  .hero-visual { padding: 22px 0 26px; }
  .hero-visual .devices-card { border-radius: var(--radius-lg); overflow: hidden; padding: 18px 14px 16px; background: linear-gradient(180deg, #edf2f8, #f6f8fb); }
  .hero-scene { display: none; }
  .hero-plant { display: none; }
  .services-strip { padding: 6px 0 30px; }
  .services-strip .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .svc-item { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .svc-item .icon-circle { width: 44px; height: 44px; }
  .svc-item .icon-circle .icon { width: 20px; height: 20px; }
  .svc-item h3 { font-size: 13px; margin: 0; }
  .svc-item p { display: none; }
  .projects-grid, .post-grid, .testimonials, .work-grid, .steps { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 36px 0 24px; }
  .page-hero h1 { font-size: 26px; }
  .cta-band h2 { font-size: 22px; }
  .cta-band .btn-white { width: 100%; }
  .service-card { padding: 26px 22px 22px; min-height: 0; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; min-height: 40px; padding: 0 20px; }
  .work-card .thumb { aspect-ratio: 16 / 9; }
  .home .projects-grid .project-card:nth-child(n+5) { display: none; }
  .custom-banner { padding: 22px 20px; }
  .custom-banner .btn { width: 100%; }
  .prose { font-size: 16px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
}
