/* ==========================================================================
   Darwin AI Studio — darwin-si.com
   @author dsh (DeepSeek Harness)
   @date 2026-10-01
   @change v3：英文界面；氛围渐变背景 + 毛玻璃卡片 + 冷暖层次；
                首屏保持「工作室 / 产品」并列双栏
   ========================================================================== */

:root {
  /* --- Sky: cool top → warm horizon --- */
  --sky-1:   #dceafb;   /* high sky, pale blue      */
  --sky-2:   #e8f1fb;
  --sky-3:   #f5eee6;   /* warm haze near horizon   */
  --sky-4:   #fbf4ec;

  --page:      #eef4fb;
  --page-alt:  #f6f0e9;   /* warm-tinted alternate section */

  /* --- Glass surfaces --- */
  --glass:       rgba(255, 255, 255, .66);
  --glass-solid: rgba(255, 255, 255, .82);
  --glass-hi:    rgba(255, 255, 255, .90);
  --glass-bd:    rgba(255, 255, 255, .75);
  --hairline:    rgba(30, 64, 110, .10);
  --hairline-2:  rgba(30, 64, 110, .16);

  /* --- Text --- */
  --text:      #14304c;
  --text-body: #33546f;
  --text-dim:  #5b7691;
  --text-mute: #8098ad;

  /* --- Accents --- */
  --accent:      #2360db;
  --accent-2:    #4a8bf0;
  --accent-ink:  #1a4bb5;
  --accent-soft: rgba(74, 139, 240, .13);
  --warm:        #d97a3d;
  --warm-soft:   rgba(217, 122, 61, .11);

  --radius:    18px;
  --radius-sm: 12px;
  --wrap:      1120px;

  --shadow-sm: 0 1px 2px rgba(20, 48, 76, .05),
               0 4px 14px -8px rgba(20, 48, 76, .12);
  --shadow:    0 2px 6px rgba(20, 48, 76, .05),
               0 14px 34px -16px rgba(20, 48, 76, .22);
  --shadow-lg: 0 4px 12px rgba(20, 48, 76, .07),
               0 26px 56px -22px rgba(20, 48, 76, .30);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue",
          Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--text-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Atmospheric backdrop: cool sky up top settling into a warm horizon,
     fixed so the content glides over it while scrolling. */
  background:
    radial-gradient(1200px 620px at 78% -8%,  rgba(122, 176, 246, .40), transparent 62%),
    radial-gradient(900px  560px at 12% 4%,   rgba(163, 205, 250, .34), transparent 66%),
    radial-gradient(1100px 700px at 62% 54%,  rgba(250, 214, 172, .34), transparent 68%),
    radial-gradient(900px  600px at 18% 82%,  rgba(246, 199, 173, .26), transparent 70%),
    linear-gradient(178deg, var(--sky-1) 0%, var(--sky-2) 24%,
                            var(--sky-3) 62%, var(--sky-4) 100%);
  background-attachment: fixed;
  background-color: var(--page);
}

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

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0;
  z-index: 100; font-size: 14px;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: .87em;
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent-ink);
}

/* ==========================================================================
   Nav — frosted glass bar
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .58);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(255, 255, 255, .80);
  box-shadow: 0 6px 22px -16px rgba(20, 48, 76, .45);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent-ink));
  color: #fff; font-weight: 800;
  font-family: var(--mono); font-size: 17px;
  flex: none;
  box-shadow: 0 4px 12px -4px rgba(35, 96, 219, .6);
}
.brand-text { font-size: 15.5px; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav-links a { color: var(--text-dim); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 5px 14px -5px rgba(35, 96, 219, .7);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-ink); transform: translateY(-1px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 66px 0 88px; }
.hero-glow {
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 1240px; height: 700px;
  background: radial-gradient(ellipse at center,
              rgba(255, 255, 255, .55) 0%,
              rgba(255, 255, 255, .18) 42%,
              transparent 72%);
  pointer-events: none;
}
/* Warm horizon light rising from below the panels */
.hero-horizon {
  position: absolute;
  bottom: -220px; left: 50%;
  transform: translateX(-50%);
  width: 1500px; height: 620px;
  background: radial-gradient(ellipse at center,
              rgba(255, 186, 122, .38) 0%,
              rgba(255, 205, 155, .20) 38%,
              transparent 68%);
  pointer-events: none;
}
.hero-head { position: relative; margin-bottom: 42px; max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 700;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(35, 96, 219, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(35, 96, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 96, 219, 0); }
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -.9px;
  margin: 0;
  font-weight: 750;
  color: var(--text);
}
.hl {
  color: var(--accent);
  background: linear-gradient(180deg, transparent 62%, rgba(74,139,240,.22) 62%);
}
.hero-lede {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-dim);
  max-width: 700px;
}

/* --- Studio pillar cards spacing --- */
.grid + .principle { margin-top: 56px; }

/* ==========================================================================
   Products — stacked sections with screenshots / diagrams
   ========================================================================== */
#products { display: block; }

.product {
  position: relative;
  padding: 76px 0;
  border-top: 1px solid var(--hairline);
}
.product-alt {
  background: linear-gradient(180deg,
              rgba(255, 250, 244, .55) 0%,
              rgba(255, 246, 238, .30) 100%);
}

.prod-head { max-width: 780px; margin-bottom: 34px; }
.prod-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap;
}
.prod-num {
  display: inline-block;
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 13px;
}
.prod-tag {
  display: inline-block;
  font-size: 11.5px; letter-spacing: .5px; font-weight: 600;
  color: var(--text-dim);
  background: var(--glass-solid);
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  padding: 3px 11px;
}
.prod-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  margin: 0 0 14px; font-weight: 720;
  letter-spacing: -.5px; color: var(--text);
}
.prod-lede {
  margin: 0; font-size: 16.5px; color: var(--text-dim); line-height: 1.78;
}
.prod-lede strong { color: var(--text); font-weight: 650; }

/* --- screenshot / diagram figure --- */
.shot { margin: 0 0 44px; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--shadow);
  background: #fff;
}
.shot figcaption {
  margin-top: 14px;
  font-size: 13.5px; color: var(--text-mute);
  text-align: center;
}

/* --- two-column problem / solution (legacy fallback) --- */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
.prod-block { min-width: 0; }

/* --- compact 2-screen product showcase grid --- */
.products-section {
  position: relative;
  padding: 68px 0 84px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg,
              rgba(255, 250, 244, .45) 0%,
              rgba(255, 246, 238, .25) 100%);
}
.prod-showcase-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  gap: 24px;
  max-width: 960px;
  margin: 32px auto 28px;
}
.prod-showcase-card {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0px;
  -ms-flex: 1 1 0px;
  flex: 1 1 0px;
  min-width: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass-solid);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prod-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 139, 240, .45);
}
.card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f4f9;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.prod-showcase-card:hover .card-thumb img {
  transform: scale(1.04);
}
.card-body {
  padding: 22px 20px 24px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  flex: 1;
}
.card-body .prod-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.card-body h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}
.card-body .prod-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.prod-feats {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 8px;
}
.prod-feats li {
  list-style: none !important;
  list-style-type: none !important;
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-body);
  font-weight: 550;
  line-height: 1.5;
}
.prod-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 11.5px;
}
.card-foot-note {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

.prob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.prob-list li {
  background: linear-gradient(160deg,
              rgba(255, 248, 242, .92) 0%,
              rgba(255, 243, 233, .82) 100%);
  border: 1px solid rgba(217, 122, 61, .22);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.prob-list strong {
  display: block; font-size: 14.5px; font-weight: 680;
  color: #9a4f20; margin-bottom: 5px; line-height: 1.45;
}
.prob-list span { font-size: 14px; color: #6f5a4b; line-height: 1.7; }
.prob-list code {
  background: rgba(217,122,61,.13); color: #9a4f20;
}

.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feat-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--glass-solid);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.feat-list .feat-idx {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 5px; padding: 3px 8px;
  flex: none; font-weight: 600; margin-top: 2px;
}
.feat-list strong {
  display: block; font-size: 14.5px; font-weight: 680;
  color: var(--text); margin-bottom: 4px;
}
.feat-list p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.feat-list code {
  background: var(--accent-soft); color: var(--accent-ink);
}

.prod-note {
  margin: 0; font-size: 13.5px; color: var(--text-mute);
  padding-top: 18px; border-top: 1px solid var(--hairline);
}
.prod-note strong { color: var(--text-dim); font-weight: 650; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
}
/* Warm-tinted band so the page isn't one flat wash */
.section-alt {
  background: linear-gradient(180deg,
              rgba(255, 250, 244, .55) 0%,
              rgba(255, 246, 238, .30) 100%);
}

.sec-label {
  font-size: 12px; letter-spacing: 1.7px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 12px;
}
.sec-title {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  margin: 0 0 18px; font-weight: 720; letter-spacing: -.5px;
  color: var(--text);
}
.sec-intro {
  font-size: 16.5px; color: var(--text-dim);
  max-width: 740px; margin: 0 0 50px; line-height: 1.78;
}
.sec-intro strong { color: var(--text); font-weight: 650; }

.block { margin-bottom: 58px; }
.block:last-of-type { margin-bottom: 0; }
.block-title {
  font-size: 18.5px; font-weight: 680; margin: 0 0 24px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.4; color: var(--text);
}

/* ==========================================================================
   Grids & glass cards
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .feat, .fit-box, .principle {
  background: var(--glass-solid);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.card { padding: 28px 26px; }
.card:hover, .feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--glass-hi);
}
.card-icon {
  font-size: 20px; color: var(--accent);
  margin-bottom: 14px; font-family: var(--mono); line-height: 1;
}
.card h3 { font-size: 16.5px; margin: 0 0 9px; font-weight: 680; color: var(--text); }
.card p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.75; }

/* ==========================================================================
   Principles
   ========================================================================== */
.principle { margin-top: 56px; padding: 34px 32px; }
.principle > h3 { font-size: 16.5px; margin: 0 0 26px; font-weight: 680; color: var(--text); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.principles li { display: flex; gap: 18px; align-items: flex-start; }
.p-num {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px; padding: 3px 8px;
  flex: none; margin-top: 3px; line-height: 1.5; font-weight: 600;
}
.principles strong { display: block; font-size: 15.5px; margin-bottom: 4px; font-weight: 680; color: var(--text); }
.principles p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.75; }

/* ==========================================================================
   Problem cards — warm, to sit against the cool blue
   ========================================================================== */
.pain-item {
  background: linear-gradient(160deg,
              rgba(255, 248, 242, .92) 0%,
              rgba(255, 243, 233, .82) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 122, 61, .22);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: 0 6px 20px -14px rgba(164, 88, 34, .45);
}
.pain-item h4 {
  font-size: 15px; margin: 0 0 9px; font-weight: 680;
  color: #9a4f20; line-height: 1.45;
}
.pain-item p { margin: 0; font-size: 14.5px; color: #6f5a4b; line-height: 1.75; }

/* ==========================================================================
   Solution cards
   ========================================================================== */
.feat { padding: 26px; }
.feat:hover { border-color: rgba(74, 139, 240, .45); }
.feat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.feat-idx {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px; padding: 3px 8px;
  flex: none; font-weight: 600;
}
.feat h4 { font-size: 15.5px; margin: 0; font-weight: 680; color: var(--text); }
.feat p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.75; }

/* ==========================================================================
   Requirements
   ========================================================================== */
.fit-box { padding: 26px; }
.fit-box h4 {
  font-size: 14.5px; margin: 0 0 16px; font-weight: 680;
  color: var(--accent); letter-spacing: .2px;
}
.fit-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fit-box li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-dim); }
.fit-box li::before {
  content: "▸"; position: absolute; left: 2px; top: 0;
  color: var(--accent-2); font-size: 13px;
}
.fit-box li strong { color: var(--text); font-weight: 650; }
.note {
  margin: 16px 0 0; font-size: 13px; color: var(--text-mute);
  padding-top: 14px; border-top: 1px solid var(--hairline);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px -9px rgba(35, 96, 219, .8);
}
.btn-primary:hover {
  background: var(--accent-ink);
  box-shadow: 0 12px 28px -10px rgba(35, 96, 219, .85);
}
.btn-secondary {
  background: var(--glass-solid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-bd);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--glass-hi);
  border-color: rgba(74, 139, 240, .35);
  box-shadow: var(--shadow);
  color: var(--accent);
}

.hero-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px; flex-wrap: wrap;
}

.product-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg,
              rgba(255,255,255,.80) 0%,
              rgba(226, 240, 255, .70) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.product-cta p { margin: 0; font-size: 16px; color: var(--text); font-weight: 550; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap { max-width: 760px; }
.mail-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--glass-solid);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.mail-card:hover {
  border-color: rgba(74, 139, 240, .5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.mail-label {
  font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-mute); flex: none; font-weight: 650;
  border-right: 1px solid var(--hairline);
  padding-right: 18px;
}
.mail-addr {
  font-family: var(--mono);
  font-size: 16.5px;
  color: var(--accent);
  flex: 1; word-break: break-all; font-weight: 550;
}
.mail-go { color: var(--text-mute); font-size: 19px; transition: transform .22s, color .22s; }
.mail-card:hover .mail-go { transform: translateX(4px); color: var(--accent); }
.contact-note { font-size: 13.5px; color: var(--text-mute); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg,
              rgba(255, 253, 250, .45) 0%,
              rgba(255, 249, 243, .70) 100%);
  padding: 44px 0 30px;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 15px; font-weight: 680; color: var(--text); }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--text-mute); }
.footer-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.footer-links a { color: var(--text-dim); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-link-btn {
  background: none; border: none; padding: 0;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-dim); cursor: pointer; transition: color .2s;
}
.footer-link-btn:hover { color: var(--accent); }
.footer-bottom { padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: 12.5px; color: var(--text-mute); }

/* ==========================================================================
   In-Site Messaging (Strip & Glass Modal)
   ========================================================================== */
.msg-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--glass-solid);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .22s, box-shadow .22s;
}
.msg-strip:hover {
  border-color: rgba(74, 139, 240, .4);
  box-shadow: var(--shadow);
}
.msg-strip-content h4 {
  font-size: 16px;
  font-weight: 680;
  color: var(--text);
  margin: 0 0 4px;
}
.msg-strip-content p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
}
.msg-strip-action { flex: none; }

/* Modal Backdrop & Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  box-shadow: 0 24px 60px -15px rgba(15, 23, 42, .25), 0 0 0 1px rgba(74, 139, 240, .15);
  padding: 30px 28px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-mute);
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.modal-close:hover {
  background: #fff;
  color: var(--text);
  transform: scale(1.08);
}
.modal-head {
  margin-bottom: 20px;
  padding-right: 28px;
}
.modal-head h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
  letter-spacing: -.3px;
}
.modal-head p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.modal-form {
  display: grid;
  gap: 15px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-body);
  letter-spacing: .2px;
}
.form-input, .form-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(74, 139, 240, .25);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input:focus, .form-textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.form-note {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 2px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.form-status {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 550;
  display: none;
}
.form-success-box {
  display: none;
  text-align: center;
  padding: 20px 10px;
}
.form-success-box .success-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
  border: 1px solid rgba(5, 150, 105, .25);
}
.form-success-box h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.form-success-box p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 18px;
  line-height: 1.55;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .prod-grid, .prod-showcase-grid { grid-template-columns: 1fr; gap: 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .msg-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .msg-strip-action { width: 100%; }
  .msg-strip-action .btn { width: 100%; }
  .hero { padding: 52px 0 64px; }
  .hero-head { margin-bottom: 32px; }
  .section, .products-section { padding: 54px 0; }
}
@media (max-width: 620px) {
  .nav-links { gap: 16px; font-size: 13.5px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-text { font-size: 14.5px; }
  .product { padding: 60px 0; }
  .prod-grid { gap: 16px; }
  .principle, .product-cta { padding: 24px 20px; }
  .product-cta { flex-direction: column; align-items: stretch; }
  .product-cta .btn { width: 100%; }
  .mail-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mail-label { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 0 0 8px; }
  .mail-go { display: none; }
  .footer-inner { flex-direction: column; }
  .sec-intro { font-size: 15.5px; }
}

/* Fixed backgrounds misbehave on mobile Safari — pin to scroll instead */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .feat, .fit-box, .principle, .mail-card, .product-cta, .feat-list li {
    background: rgba(255, 255, 255, .94);
  }
}

@media print {
  .nav, .skip { display: none; }
  body { background: #fff; }
  .card, .feat, .fit-box, .principle, .mail-card { background: #fff; box-shadow: none; }
}
