:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f7f9fc;
  --surface: #fff;
  --text: #172435;
  --muted: #5e6a7b;
  --line: #dce3ed;
  --accent: #197d9b;
  --page-gradient: linear-gradient(-45deg, #cde7ec, #d3d9eb);
  --code: #f7f9fc;
  --shadow: rgba(24, 46, 74, .1);
  color: var(--text);
  background: var(--page);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #111b2b;
    --surface: #1b2739;
    --text: #f5f8ff;
    --muted: #b4c0d0;
    --line: #34445c;
    --accent: #78e1ef;
    --page-gradient: radial-gradient(ellipse 72% 82% at 88% 100%, #24243d, transparent 80%), linear-gradient(115deg, #172a38, var(--page) 75%);
    --code: rgba(218, 225, 248, .1);
    --shadow: rgba(0, 0, 0, .22);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111b2b;
  --surface: #1b2739;
  --text: #f5f8ff;
  --muted: #b4c0d0;
  --line: #34445c;
  --accent: #78e1ef;
  --page-gradient: radial-gradient(ellipse 72% 82% at 88% 100%, #24243d, transparent 80%), linear-gradient(115deg, #172a38, var(--page) 75%);
  --code: rgba(218, 225, 248, .1);
  --shadow: rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; background: var(--page-gradient); }
main { flex: 1; }
a { color: inherit; }
button { font: inherit; }
.site-header { width: 100%; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 16px 28px; }
.brand img { display: block; width: 128px; height: auto; }
.site-preferences { display: flex; align-items: center; gap: 10px; }
.andy-switch.andy-switch { --border: var(--line); --muted: var(--muted); --accent: var(--accent); }
.hero-wrap { overflow: hidden; }
.hero { max-width: 1360px; min-height: 630px; margin: auto; padding: clamp(75px, 10vw, 130px) 28px 100px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(30px, 5vw, 85px); }
.eyebrow { margin: 0 0 28px; color: var(--accent); font-size: clamp(13px, 1.2vw, 17px); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(53px, 6vw, 88px); font-weight: 750; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.hero-lead { max-width: 670px; margin: 30px 0 0; color: var(--muted); font-size: clamp(20px, 2vw, 27px); font-weight: 400; line-height: 1.45; text-wrap: pretty; }
.contact { margin-top: 32px; }
.contact-button { border: 0; border-radius: 999px; padding: 14px 24px; color: #102232; background: linear-gradient(110deg, #80e2ef, #a6a2fb); font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px var(--shadow); }
.contact-button:hover { filter: brightness(1.06); }
.contact-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.contact-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reversed-email { unicode-bidi: bidi-override; direction: rtl; font-weight: 500; }
.focus-card { min-width: 0; padding: 24px 30px 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--code); box-shadow: 0 24px 60px var(--shadow); backdrop-filter: blur(14px); }
.window-dots { display: flex; gap: 8px; margin-bottom: 25px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); opacity: .55; }
.focus-card pre { margin: 0; overflow-x: auto; color: var(--text); font: 500 clamp(14px, 1.55vw, 20px)/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.focus-card code { font: inherit; }
.partners { max-width: 1240px; margin: auto; padding: 68px 28px 80px; }
.partners h2 { margin: 0 0 36px; color: var(--muted); font-size: 14px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.partner { min-height: 100px; display: grid; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.partner img { display: block; max-width: 130px; max-height: 45px; width: auto; height: auto; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .72; }
.partner img.detail-logo { filter: grayscale(1); }
.site-footer { width: 100%; max-width: 1240px; min-height: 76px; margin: 0 auto; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-footer a, .legal-main a { text-underline-offset: 3px; }
.legal-main { width: 100%; max-width: 760px; min-height: calc(100svh - 164px); margin: 0 auto; padding: 64px 24px 90px; }
.legal-main h1 { margin-bottom: 44px; font-size: clamp(36px, 6vw, 62px); }
.legal-main h2 { margin: 36px 0 12px; font-size: 20px; }
.legal-main p, .legal-main li { color: var(--muted); line-height: 1.65; }
.legal-main p, .legal-main ul { margin: 0 0 17px; }
.legal-main ul { padding-left: 22px; }
.legal-main a { color: var(--accent); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .partner img { filter: grayscale(1) brightness(0) invert(1); }
  :root:not([data-theme="light"]) .partner img.detail-logo { filter: grayscale(1) invert(1); }
}
:root[data-theme="dark"] .partner img { filter: grayscale(1) brightness(0) invert(1); }
:root[data-theme="dark"] .partner img.detail-logo { filter: grayscale(1) invert(1); }

@media (max-width: 800px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 75px; padding-bottom: 76px; }
  .focus-card { max-width: 640px; width: 100%; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .site-header { min-height: 72px; padding: 12px 16px; gap: 8px; }
  .site-preferences { gap: 6px; }
  .andy-switch.andy-switch > :is(button,a) { width: 28px; min-width: 28px; height: 30px; }
  .hero { padding: 58px 20px 62px; }
  h1 { font-size: clamp(43px, 12vw, 62px); }
  .hero-lead { margin-top: 24px; font-size: 19px; }
  .focus-card { padding: 20px; border-radius: 22px; }
  .partners { padding: 58px 20px; }
  .partner-grid { gap: 10px; }
  .partner { min-height: 78px; padding: 14px; }
  .partner img { max-width: 110px; max-height: 38px; }
  .site-footer { padding: 24px 20px; }
}
