@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-weight: 400;
  color-scheme: light;
  --ink: #161a2b;
  --muted: #777d90;
  --blue: #4058f5;
  --deep-blue: #11182e;
  --surface: #fff;
  --page-bg: #f7f8fc;
  --surface-soft: #eceef5;
  --surface-blue: #f0f2ff;
  --surface-green: #e3f5ee;
  --border: #e9ebf2;
  --border-light: #e8eaf1;
  --text-body: #292f42;
  --text-subtle: #83899a;
  --text-label: #8b91a2;
  --text-strong: #1a2034;
  --text-muted: #737a91;
  --text-faint: #868b9a;
  --text-header: #62687a;
  --text-link: #292f44;
  --text-badge: #848a9b;
  --text-copy: #71788b;
  --blue-soft: #4d5feb;
  --green-text: #276951;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf0fa;
  --muted: #a2abc0;
  --surface: #1b2233;
  --page-bg: #111726;
  --surface-soft: #293247;
  --surface-blue: #242d48;
  --surface-green: #1e3a35;
  --border: #30394d;
  --border-light: #30394d;
  --text-body: #d4daea;
  --text-subtle: #a7b0c4;
  --text-label: #a5aec1;
  --text-strong: #f0f2fa;
  --text-muted: #abb5cb;
  --text-faint: #a2abc0;
  --text-header: #c0c8db;
  --text-link: #e3e7f2;
  --text-badge: #bdc5d8;
  --text-copy: #b9c2d6;
  --blue-soft: #a8b4ff;
  --green-text: #8ee0bd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #edf0fa;
    --muted: #a2abc0;
    --surface: #1b2233;
    --page-bg: #111726;
    --surface-soft: #293247;
    --surface-blue: #242d48;
    --surface-green: #1e3a35;
    --border: #30394d;
    --border-light: #30394d;
    --text-body: #d4daea;
    --text-subtle: #a7b0c4;
    --text-label: #a5aec1;
    --text-strong: #f0f2fa;
    --text-muted: #abb5cb;
    --text-faint: #a2abc0;
    --text-header: #c0c8db;
    --text-link: #e3e7f2;
    --text-badge: #bdc5d8;
    --text-copy: #b9c2d6;
    --blue-soft: #a8b4ff;
    --green-text: #8ee0bd;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  height: 82px;
  padding: 0 max(6.4vw, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1.1px;
}

.brand-mark { width: 31px; height: 31px; color: var(--blue); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-accent { color: var(--blue); }

.header-nav { display: flex; gap: 38px; margin-left: 100px; }
.header-nav a { color: var(--text-header); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.header-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-link);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.theme-toggle:hover { color: var(--blue); border-color: #b8c0ff; }
.theme-toggle:focus-visible { outline: 3px solid rgba(112,132,255,.4); outline-offset: 2px; }

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 17px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-link);
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease;
}

.header-link:hover { color: var(--blue); border-color: #b8c0ff; }
.header-link span { color: var(--blue); font-size: 16px; }

.hero {
  position: relative;
  min-height: 518px;
  padding: 77px 24px 62px;
  overflow: hidden;
  color: #fff;
  background: #11182e;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 460px; height: 460px; top: -230px; right: 9%; background: radial-gradient(circle, rgba(65,88,245,.18), transparent 70%); }
.hero-glow-two { width: 520px; height: 420px; bottom: -300px; left: 20%; background: radial-gradient(ellipse, rgba(49,92,248,.18), transparent 72%); }

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow, .section-kicker { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #abb6d1; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #54ddb2; box-shadow: 0 0 12px rgba(84,221,178,.65); }

.hero h1 {
  margin: 20px 0 15px;
  font-family: Manrope, sans-serif;
  font-size: clamp(39px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -2.8px;
}

.hero h1 span { color: #7f94ff; }
.hero-copy { max-width: 510px; margin: 0 auto; color: #aab1c5; font-size: 14px; line-height: 1.75; }

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 690px;
  height: 67px;
  margin: 31px auto 0;
  padding: 7px 7px 7px 19px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(4,9,26,.27);
  text-align: left;
}

.search-icon { display: flex; flex: 0 0 21px; color: #9298a9; }
.search-icon svg { width: 20px; height: 20px; }
.search-form input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-form input::placeholder { color: var(--text-subtle); }
.search-form:focus-within { outline: 3px solid rgba(112,132,255,.4); }

.search-button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 51px;
  padding: 0 19px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.search-button:hover { background: #3049e8; transform: translateY(-1px); }
.search-button:disabled { cursor: wait; opacity: .75; transform: none; }
.button-arrow { font-size: 18px; font-weight: 400; }

.search-meta { display: flex; max-width: 690px; align-items: center; justify-content: space-between; margin: 13px auto 0; }
.search-message { min-height: 17px; margin: 0; color: #929bb4; font-size: 11px; text-align: left; }
.search-message.is-error { color: #ff9f9f; }
.search-message.is-success { color: #7ce2c0; }
.my-ip-button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0 4px 10px; border: 0; color: #c2c9da; background: transparent; font-size: 11px; cursor: pointer; transition: color .2s ease; }
.my-ip-button:hover { color: #fff; }
.my-ip-button svg { width: 17px; height: 17px; }
.my-ip-button:disabled { cursor: wait; opacity: .65; }

.hero-bottom { position: absolute; right: max(6.4vw, calc((100vw - 1240px) / 2)); bottom: 21px; left: max(6.4vw, calc((100vw - 1240px) / 2)); display: flex; align-items: center; gap: 10px; color: #69738e; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.hero-bottom-line { width: 33px; height: 1px; background: #414c6a; }
.hero-bottom-caption { margin-left: auto; font-size: 9px; font-weight: 500; letter-spacing: .2px; }

.results-section { max-width: 1000px; margin: 0 auto; padding: 65px 24px 73px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-kicker { margin: 0 0 9px; color: var(--blue); font-size: 9px; }
.section-heading h2, .how-copy h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -1.2px; }
.results-badge { padding: 7px 10px; border-radius: 4px; color: var(--text-badge); background: var(--surface-soft); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.results-badge.is-ready { color: var(--green-text); background: var(--surface-green); }

.results-card { min-height: 218px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 32px rgba(24,33,72,.035); }
.empty-state { display: flex; min-height: 218px; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.empty-icon { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 12px; color: #7182f8; }
.empty-icon svg { width: 100%; height: 100%; }
.empty-state h3 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 700; }
.empty-state p { margin: 0; color: var(--text-subtle); font-size: 11px; line-height: 1.6; }

.result-content { padding: 25px 28px 27px; }
.ip-summary { display: flex; align-items: center; justify-content: space-between; padding-bottom: 21px; border-bottom: 1px solid var(--border); }
.data-label { margin: 0 0 7px; color: var(--text-label); font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.ip-value-row { display: flex; align-items: center; gap: 9px; }
.ip-value-row h3 { margin: 0; color: var(--text-strong); font-family: Manrope, sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -.8px; word-break: break-all; }
.copy-button { display: inline-flex; width: 29px; height: 29px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; color: var(--text-copy); background: var(--surface); cursor: pointer; }
.copy-button:hover { color: var(--blue); border-color: #c9ceff; }
.copy-button svg { width: 16px; height: 16px; }
.ip-version { padding: 6px 9px; border-radius: 4px; color: var(--blue-soft); background: var(--surface-blue); font-size: 8px; font-weight: 800; letter-spacing: .6px; }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 23px; }
.data-item { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.data-icon { display: flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border-radius: 7px; color: var(--blue-soft); background: var(--surface-blue); font-size: 17px; }
.data-item .data-label { margin: 2px 0 7px; font-size: 7px; }
.data-value { overflow-wrap: anywhere; margin: 0; color: var(--text-body); font-size: 11px; font-weight: 600; line-height: 1.5; }
.data-disclaimer { margin: 11px 0 0; color: var(--text-subtle); font-size: 10px; }

.how-section { display: grid; max-width: 1000px; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; margin: 0 auto; padding: 53px 24px 82px; border-top: 1px solid var(--border-light); }
.how-copy h2 { font-size: 30px; line-height: 1.25; }
.how-copy h2 span { color: var(--blue); }
.how-copy > p:last-child { max-width: 380px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.how-steps { display: grid; gap: 10px; }
.step-card { display: grid; grid-template-columns: 39px 1fr 20px; gap: 15px; align-items: start; padding: 19px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.step-number { color: #6678f5; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; }
.step-card h3 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; }
.step-card p { margin: 0; color: var(--text-subtle); font-size: 10px; line-height: 1.6; }
.step-arrow { justify-self: end; color: #adb3c1; font-size: 16px; }

.privacy-banner { display: flex; max-width: 952px; align-items: center; gap: 17px; margin: 0 auto 67px; padding: 22px 25px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-blue); }
.privacy-icon { display: flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border-radius: 9px; color: var(--blue-soft); background: var(--surface); }
.privacy-icon svg { width: 23px; height: 23px; }
.privacy-banner h2 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; }
.privacy-banner p { margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.6; }

.site-footer { display: flex; min-height: 83px; align-items: center; justify-content: space-between; padding: 0 max(6.4vw, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--border-light); background: var(--surface); }
.footer-brand { gap: 6px; font-size: 16px; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.site-footer p, .site-footer > span { color: var(--text-faint); font-size: 10px; }
.site-footer > span { font-size: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .site-header { height: 68px; padding: 0 22px; }
  .brand { font-size: 19px; }
  .header-nav { gap: 18px; margin-left: 0; }
  .header-nav a { font-size: 11px; }
  .header-link { padding: 9px 11px; font-size: 10px; }
  .theme-toggle { width: 35px; height: 35px; }
  .hero { min-height: 500px; padding: 77px 22px 66px; }
  .hero h1 { font-size: clamp(38px, 8vw, 51px); letter-spacing: -2px; }
  .hero-copy { max-width: 430px; font-size: 13px; }
  .search-form { height: 61px; }
  .search-button { height: 47px; padding: 0 14px; gap: 10px; }
  .hero-bottom { right: 22px; left: 22px; }
  .results-section { padding-top: 52px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .how-section { grid-template-columns: 1fr; gap: 30px; padding-top: 42px; }
  .how-copy h2 { font-size: 28px; }
  .privacy-banner { margin-right: 24px; margin-left: 24px; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 17px; }
  .header-nav { display: none; }
  .header-actions { margin-left: auto; gap: 7px; }
  .header-link { padding: 9px 8px; font-size: 10px; }
  .hero { min-height: 494px; padding: 70px 17px 65px; }
  .eyebrow { font-size: 9px; }
  .hero h1 { margin-top: 19px; font-size: 39px; letter-spacing: -2px; }
  .hero-copy { max-width: 330px; font-size: 12px; }
  .search-form { position: relative; gap: 8px; height: auto; min-height: 59px; margin-top: 26px; padding: 6px 6px 6px 12px; }
  .search-form input { font-size: 11px; }
  .search-button { width: 44px; height: 45px; gap: 0; padding: 0; }
  .search-button > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .button-arrow { font-size: 20px; }
  .search-meta { align-items: flex-start; gap: 8px; }
  .search-message { max-width: 56%; font-size: 10px; line-height: 1.5; }
  .my-ip-button { gap: 5px; font-size: 10px; white-space: nowrap; }
  .hero-bottom { right: 17px; left: 17px; }
  .results-section { padding: 43px 17px 52px; }
  .section-heading h2 { font-size: 24px; }
  .results-badge { max-width: 125px; font-size: 7px; text-align: center; }
  .result-content { padding: 21px 16px; }
  .ip-value-row h3 { font-size: 23px; }
  .data-grid { gap: 20px 10px; }
  .data-item { gap: 7px; }
  .data-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .data-item .data-label { font-size: 6px; letter-spacing: .5px; }
  .data-value { font-size: 10px; }
  .how-section { gap: 25px; padding: 38px 17px 56px; }
  .step-card { grid-template-columns: 29px 1fr 15px; gap: 10px; padding: 16px 13px; }
  .privacy-banner { align-items: flex-start; gap: 12px; margin: 0 17px 45px; padding: 17px 15px; }
  .privacy-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .site-footer { flex-wrap: wrap; gap: 4px 12px; padding: 16px 17px; }
  .site-footer p { flex-basis: calc(100% - 100px); margin: 0; text-align: right; }
  .site-footer > span { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
