:root {
  --navy-950: #071a31;
  --navy-900: #0d2c4e;
  --navy-800: #17466f;
  --navy-700: #246395;
  --navy-100: #e6eff8;
  --navy-50: #f3f7fb;
  --orange-600: #c94f12;
  --orange-500: #ed6a1e;
  --orange-300: #f6b477;
  --orange-100: #fff0e4;
  --canvas: #f2f6fa;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --line: #d6e1ec;
  --line-strong: #b8cadc;
  --text: #102d4a;
  --text-soft: #55718a;
  --text-faint: #8094a8;
  --success: #138a65;
  --success-soft: #e5f5ef;
  --warning: #a75914;
  --warning-soft: #fff1df;
  --shadow-xs: 0 4px 13px rgba(8, 35, 62, 0.055);
  --shadow-sm: 0 12px 28px rgba(8, 35, 62, 0.085);
  --shadow-md: 0 22px 50px rgba(8, 35, 62, 0.12);
  --shadow-lg: 0 34px 76px rgba(8, 35, 62, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --page-width: min(1220px, calc(100vw - 48px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 160ms;
  --duration: 220ms;
  --duration-slow: 620ms;
}

@font-face {
  font-family: "IRANSans";
  src: url("../assets/fonts/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("../assets/fonts/IRANSansWeb_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("../assets/fonts/IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(13, 44, 78, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 44, 78, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 96% 0%, rgba(237, 106, 30, 0.14), transparent 21rem),
    radial-gradient(circle at 4% 38%, rgba(36, 99, 149, 0.09), transparent 22rem),
    linear-gradient(180deg, #fbfcfe 0%, var(--canvas) 48%, #edf3f8 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  font-family: "IRANSans", sans-serif;
  text-align: right;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

button:not(:disabled),
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(244, 109, 27, 0.38);
  outline-offset: 3px;
}

.page-noise,
.page-orb {
  position: fixed;
  pointer-events: none;
}

.page-noise {
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(11, 39, 71, 0.42) 0.45px, transparent 0.55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 58%);
}

.page-orb {
  z-index: 0;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.24;
  animation: ambient-float 13s var(--ease-in-out) infinite alternate;
}

.orb-one {
  top: -18vw;
  left: -11vw;
  background: var(--orange-500);
}

.orb-two {
  top: 60vh;
  right: -17vw;
  background: #6a9cc5;
  animation-delay: -6s;
  animation-direction: alternate-reverse;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(247, 250, 252, 0.96);
  transition: opacity 280ms var(--ease-out), visibility 280ms var(--ease-out);
}

.page-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-loader-content {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-loader-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 0 rgba(244, 109, 27, 0.35);
  animation: loader-pulse 1.1s var(--ease-in-out) infinite;
}

.page-loader-text {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  backdrop-filter: none;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page-width);
  min-height: 64px;
  margin: 0 auto;
  padding: 0.55rem 0.65rem 0.55rem 0.8rem;
  border: 1px solid rgba(184, 202, 220, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f7fafd);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  transition: filter var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.brand:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 45px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.header-nav-group,
.main-nav {
  display: flex;
  align-items: center;
}

.header-nav-group {
  gap: 0.75rem;
}

.main-nav {
  gap: 0.12rem;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  transition: color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.main-nav a::after {
  position: absolute;
  right: 0.8rem;
  bottom: 6px;
  left: 0.8rem;
  height: 2px;
  border-radius: 99px;
  background: var(--orange-500);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease-out);
}

.main-nav a:hover {
  color: var(--navy-900);
  background: var(--navy-50);
  box-shadow: inset 0 0 0 1px rgba(36, 99, 149, 0.08);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-home {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  background: var(--surface-alt);
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.header-home:hover {
  border-color: var(--orange-300);
  color: var(--orange-600);
  background: var(--orange-100);
  box-shadow: var(--shadow-xs);
  transform: rotate(-4deg);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  width: var(--page-width);
  margin: 0 auto;
  padding: 2.15rem 0 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 1.25rem;
}

.hero-copy,
.hero-panel,
.finder-shell,
.lookup-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  position: relative;
  display: flex;
  min-height: 426px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-color: rgba(7, 26, 49, 0.92);
  background:
    linear-gradient(120deg, rgba(7, 26, 49, 0.98), rgba(13, 44, 78, 0.96) 60%, rgba(23, 70, 111, 0.94)),
    var(--navy-900);
  box-shadow: 0 32px 70px rgba(7, 26, 49, 0.27);
  color: #fff;
}

.hero-copy::before,
.hero-copy::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-copy::before {
  top: -9rem;
  left: -5rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3.6rem rgba(255, 255, 255, 0.025), 0 0 0 7.2rem rgba(255, 255, 255, 0.02);
  animation: hero-orbit 17s var(--ease-in-out) infinite alternate;
}

.hero-copy::after {
  right: 8%;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(237, 106, 30, 0.2);
  filter: blur(12px);
  animation: hero-glow 11s var(--ease-in-out) infinite alternate;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-topline,
.hero-highlights,
.hero-actions,
.hero-update,
.hero-highlight,
.hero-lead {
  display: flex;
  align-items: center;
}

.hero-topline {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-kicker,
.section-kicker,
.panel-badge,
.platform-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.31rem 0.68rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-kicker {
  border: 1px solid rgba(255, 179, 111, 0.3);
  color: #ffd3ae;
  background: rgba(244, 109, 27, 0.15);
}

.hero-update {
  gap: 0.5rem;
  padding: 0.28rem 0.56rem;
  border: 1px solid rgba(215, 228, 240, 0.16);
  border-radius: 999px;
  color: #dce8f2;
  background: rgba(255, 255, 255, 0.07);
}

.hero-update i {
  color: var(--orange-300);
  font-size: 0.75rem;
}

.hero-update-copy {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
}

.hero-update-copy span,
.hero-update-copy strong {
  font-size: 0.67rem;
  font-weight: 500;
}

.hero-update-copy strong {
  color: #fff;
  font-weight: 700;
}

.hero h1 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 20ch;
  margin: 1.55rem 0 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.hero h1 i {
  color: var(--orange-300);
  font-size: 0.76em;
}

.hero-lead {
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 53ch;
  margin: 1rem 0 0;
  color: #d7e4ef;
  font-size: 0.93rem;
  line-height: 2;
}

.hero-lead i {
  flex: 0 0 auto;
  margin-top: 0.44rem;
  color: var(--orange-300);
}

.hero-highlights {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.hero-highlight {
  gap: 0.42rem;
  min-height: 34px;
  padding: 0.38rem 0.66rem;
  border: 1px solid rgba(215, 228, 240, 0.16);
  border-radius: var(--radius-sm);
  color: #dce8f2;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.7rem;
  font-weight: 700;
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.hero-highlight i {
  color: var(--orange-300);
}

.hero-highlight:hover {
  border-color: rgba(255, 177, 114, 0.45);
  color: #fff;
  background: rgba(244, 109, 27, 0.15);
  box-shadow: 0 8px 20px rgba(5, 22, 42, 0.16);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 2rem;
}

.button,
.version-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 43px;
  padding: 0.67rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.button-primary,
.version-link.primary {
  border-color: var(--orange-500);
  color: #fff;
  background: linear-gradient(110deg, var(--orange-600) 0%, var(--orange-500) 42%, #f58a46 54%, var(--orange-500) 66%, var(--orange-600) 100%);
  background-size: 210% 100%;
  background-position: 0 50%;
  box-shadow: 0 10px 22px rgba(217, 90, 13, 0.25);
}

.button-primary:hover,
.version-link.primary:hover {
  border-color: var(--orange-600);
  background-position: 100% 50%;
  box-shadow: 0 14px 28px rgba(217, 90, 13, 0.32);
  transform: translateY(-2px);
}

.button-secondary,
.version-link.secondary {
  border-color: var(--line);
  color: var(--navy-800);
  background: linear-gradient(115deg, #ffffff, #ffffff 48%, #edf5fb 68%, #ffffff 84%);
  background-size: 210% 100%;
  background-position: 0 50%;
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover,
.version-link.secondary:hover {
  border-color: #9eb5c8;
  color: var(--navy-900);
  background-position: 100% 50%;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.hero .button-secondary {
  border-color: rgba(215, 228, 240, 0.24);
  color: #f4f8fb;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero .button-secondary:hover {
  border-color: rgba(255, 177, 114, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-color: #cfdeeb;
  background:
    radial-gradient(circle at 100% 0, rgba(237, 106, 30, 0.1), transparent 14rem),
    linear-gradient(160deg, #ffffff 0%, #f2f7fb 100%);
}

.hero-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: var(--orange-500);
  content: "";
}

.hero-panel-head {
  display: grid;
  gap: 0.5rem;
  padding-left: 0.5rem;
}

.panel-badge,
.section-kicker,
.platform-badge {
  border: 1px solid #cfe0ed;
  color: var(--navy-700);
  background: var(--navy-50);
}

.hero-panel-head h2,
.section-head h2,
.version-head h3 {
  margin: 0;
  color: var(--navy-900);
  line-height: 1.55;
}

.hero-panel-head h2 {
  font-size: 1.2rem;
}

.hero-panel-text {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 0.81rem;
  line-height: 1.95;
}

.hero-panel-text i {
  flex: 0 0 auto;
  margin-top: 0.36rem;
  color: var(--orange-500);
}

.hero-panel-list {
  display: grid;
  gap: 0;
  margin: 1.3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-panel-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.8;
  transition: color var(--duration) var(--ease-out), padding-right var(--duration) var(--ease-out);
}

.hero-panel-list li:hover {
  padding-right: 0.3rem;
  color: var(--navy-900);
}

.hero-panel-list i {
  padding-top: 0.17rem;
  color: var(--navy-700);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.section-head > div {
  display: grid;
  gap: 0.43rem;
  width: 100%;
}

.section-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.section-text {
  width: 100%;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 2;
}

.finder-shell,
.lookup-shell {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-color: #d3e0ea;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96)),
    var(--surface);
}

.lookup-shell {
  display: grid;
  gap: 1.25rem;
}

.lookup-tabs,
.product-tabs {
  display: grid;
  gap: 0.7rem;
}

.lookup-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lookup-tab,
.product-tab {
  display: flex;
  position: relative;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  text-align: right;
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.lookup-tab::after,
.product-tab::after {
  position: absolute;
  top: 0;
  right: 0.7rem;
  left: 0.7rem;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: var(--orange-500);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration) var(--ease-out);
}

.lookup-tab:hover,
.product-tab:hover {
  border-color: #9bbbd4;
  background: #f9fcfe;
  box-shadow: var(--shadow-xs);
}

.lookup-tab:hover::after,
.product-tab:hover::after,
.lookup-tab.is-active::after,
.product-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.lookup-tab.is-active,
.product-tab.is-active {
  border-color: #6f9fc4;
  background: linear-gradient(135deg, #f8fbfe, #e4f0f8);
  box-shadow: inset 3px 0 0 var(--orange-500), var(--shadow-xs);
}

.lookup-tab img,
.product-tab img {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  object-fit: contain;
  transition: transform var(--duration) var(--ease-out);
}

.lookup-tab:hover img,
.lookup-tab.is-active img,
.product-tab:hover img,
.product-tab.is-active img {
  transform: scale(1.05);
}

.lookup-tab span,
.product-tab span {
  display: grid;
  min-width: 0;
  gap: 0.13rem;
}

.lookup-tab strong,
.product-tab strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-tab small,
.product-tab small {
  overflow: hidden;
  color: var(--text-faint);
  direction: ltr;
  font-size: 0.67rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(310px, 0.87fr);
  gap: 1rem;
}

.lookup-guide-card,
.lookup-form-shell,
.lookup-result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.lookup-guide-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.lookup-guide-visual {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.lookup-guide-image-shell,
.lookup-result-image,
.version-head-media,
.device-media,
.latest-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d8e3ec;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 10%, rgba(244, 109, 27, 0.11), transparent 45%),
    linear-gradient(160deg, #fff, #edf4f8);
}

.lookup-guide-image-shell {
  min-height: 108px;
}

.lookup-guide-image-shell img,
.lookup-result-image img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.lookup-guide-copy,
.lookup-form-head,
.lookup-result-copy {
  display: grid;
  gap: 0.35rem;
}

.lookup-guide-copy h3,
.lookup-form-head h3,
.lookup-result-copy h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.65;
}

.lookup-guide-copy p,
.lookup-form-head p,
.lookup-input-note,
.lookup-feedback,
.lookup-guide-block li,
.lookup-result-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.9;
}

.lookup-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.lookup-guide-block {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.lookup-guide-block strong {
  color: var(--navy-800);
  font-size: 0.76rem;
}

.lookup-guide-block ol {
  margin: 0;
  padding-right: 1.1rem;
}

.lookup-form-shell {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  padding: 1.15rem;
  border-top: 3px solid var(--orange-500);
}

.lookup-form {
  display: grid;
  gap: 0.7rem;
}

.lookup-field {
  display: grid;
  gap: 0.38rem;
}

.lookup-field > span,
.search-field > span {
  color: var(--text-soft);
  font-size: 0.71rem;
  font-weight: 700;
}

.lookup-field input,
.search-input-wrap {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  background: #fff;
  outline: none;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.lookup-field input {
  width: 100%;
  padding: 0 0.85rem;
}

.lookup-field input:focus,
.search-field:focus-within .search-input-wrap {
  border-color: var(--orange-500);
  background: #fffdfb;
  box-shadow: 0 0 0 4px rgba(244, 109, 27, 0.12);
}

.lookup-submit {
  width: 100%;
}

.lookup-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.lookup-feedback {
  min-height: 1.4rem;
}

.lookup-feedback.is-success {
  color: var(--success);
}

.lookup-feedback.is-error {
  color: var(--warning);
}

.lookup-result:empty {
  display: none;
}

.lookup-result-card {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.9rem;
}

.lookup-result-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.lookup-result-image {
  width: 70px;
  height: 70px;
}

.lookup-result-image img {
  width: 56px;
  height: 56px;
}

.finder-shell {
  display: grid;
  gap: 1.2rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  background: var(--surface-alt);
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.step-item span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dce5ed;
  font-size: 0.72rem;
  font-weight: 700;
}

.step-item small {
  font-size: 0.7rem;
  font-weight: 700;
}

.step-item.is-current {
  border-color: var(--navy-700);
  color: var(--navy-900);
  background: var(--navy-50);
  box-shadow: inset 3px 0 0 var(--orange-500);
}

.step-item.is-current span {
  color: #fff;
  background: var(--navy-900);
}

.step-item.is-done {
  border-color: #b8d8cb;
  color: var(--success);
  background: #f5fbf8;
}

.step-item.is-done span {
  color: #fff;
  background: var(--success);
}

.step-item.is-disabled {
  color: #9cacbb;
  background: #f6f8fa;
}

.finder-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid #cfdeea;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(237, 106, 30, 0.08), transparent 22%),
    linear-gradient(105deg, #edf5fb, #fbfdfe);
}

.finder-toolbar-copy {
  display: grid;
  gap: 0.3rem;
}

.finder-toolbar-copy strong {
  color: var(--navy-900);
  font-size: 0.9rem;
}

.finder-toolbar-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.9;
}

.search-field {
  display: grid;
  gap: 0.38rem;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
}

.search-input-wrap i {
  color: var(--orange-500);
  font-size: 0.82rem;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--navy-900);
  background: transparent;
}

.search-field input::placeholder {
  color: #97a7b5;
}

.search-field.is-disabled .search-input-wrap {
  border-color: var(--line);
  background: #f1f4f7;
}

.product-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-tab {
  min-height: 68px;
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(355px, 0.92fr);
  gap: 1rem;
  align-items: start;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.device-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  text-align: right;
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.device-card::after,
.version-item::after,
.latest-card::after {
  position: absolute;
  top: 0;
  right: 0.8rem;
  left: 0.8rem;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration) var(--ease-out);
}

.device-card:hover {
  border-color: #9bbbd4;
  background: #fafdff;
  box-shadow: var(--shadow-sm);
}

.device-card:hover::after,
.device-card.is-active::after,
.version-item:hover::after,
.version-item.is-active::after,
.latest-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.device-card.is-active {
  border-color: #5f94bd;
  background: linear-gradient(145deg, #fff, #e9f3fa);
  box-shadow: inset 4px 0 0 var(--orange-500), var(--shadow-sm);
}

.device-media {
  min-height: 138px;
}

.device-media img {
  width: min(100%, 126px);
  height: 126px;
  object-fit: contain;
  transition: transform var(--duration) var(--ease-out);
}

.device-card:hover .device-media img,
.device-card.is-active .device-media img {
  transform: scale(1.04);
}

.device-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.8rem;
  line-height: 1.85;
}

.device-card p,
.release-meta,
.release-note,
.version-meta,
.version-note,
.panel-empty p,
.external-panel p,
.panel-helper p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  line-height: 1.85;
}

.device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.5rem;
}

.meta-pill,
.signed-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.meta-pill {
  border: 1px solid #d7e2eb;
  color: var(--text-soft);
  background: var(--surface-alt);
}

.signed-badge.is-signed {
  border: 1px solid #bde4d5;
  color: var(--success);
  background: var(--success-soft);
}

.signed-badge.is-unsigned {
  border: 1px solid #f1d1ae;
  color: var(--warning);
  background: var(--warning-soft);
}

.device-load-more,
.version-load-more {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: 0.25rem;
}

.device-load-more .button,
.version-load-more .button {
  min-width: min(100%, 270px);
  border-style: dashed;
  color: var(--navy-700);
  background: var(--navy-50);
  box-shadow: none;
}

.device-load-more .button:hover,
.version-load-more .button:hover {
  border-color: var(--orange-500);
  color: var(--orange-600);
  background: var(--orange-100);
}

.version-panel {
  position: sticky;
  top: 91px;
  min-height: 180px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: var(--shadow-sm);
}

.version-panel:empty {
  display: none;
}

.panel-helper,
.version-note {
  padding: 0.85rem;
  border: 1px solid #d5e1ea;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.panel-helper {
  display: grid;
  gap: 0.25rem;
}

.panel-helper-idle {
  min-height: 190px;
  align-content: center;
  border-style: dashed;
  text-align: center;
}

.panel-helper strong,
.panel-empty strong,
.external-panel strong,
.empty-search strong {
  color: var(--navy-900);
  font-size: 0.86rem;
}

.panel-helper.is-selected {
  border-color: #b8d8cb;
  background: #f4fbf8;
}

.version-card,
.version-list {
  display: grid;
  gap: 0.85rem;
}

.version-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.version-head-media {
  width: 80px;
  height: 80px;
}

.version-head-media img {
  width: 63px;
  height: 63px;
  object-fit: contain;
}

.version-head h3 {
  font-size: 0.9rem;
}

.version-head p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  direction: ltr;
  font-size: 0.72rem;
  text-align: right;
}

.version-item {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.version-item:hover {
  border-color: #9bbbd4;
  box-shadow: var(--shadow-xs);
}

.version-item.is-active {
  border-color: #5f94bd;
  background: linear-gradient(145deg, #fff, #eaf4fa);
  box-shadow: inset 3px 0 0 var(--orange-500), var(--shadow-xs);
}

.version-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.version-item h4 {
  margin: 0.38rem 0 0;
  color: var(--navy-900);
  font-size: 0.82rem;
  line-height: 1.8;
}

.version-meta {
  display: grid;
  gap: 0.16rem;
  margin-top: 0.65rem;
}

.dual-date,
.date-fa,
.date-en {
  display: grid;
  gap: 0.08rem;
}

.date-en {
  color: var(--text-faint);
  direction: ltr;
  font-size: 0.68rem;
  text-align: right;
}

.version-file {
  overflow-wrap: anywhere;
  margin-top: 0.72rem;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  color: #65798b;
  background: #f3f7f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
  line-height: 1.75;
}

.version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.version-detail-toggle.is-open {
  border-color: var(--orange-300);
  color: var(--orange-600);
  background: var(--orange-100);
}

.version-inline-details {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid #cbddea;
  border-right: 3px solid var(--orange-500);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f7fbfe, #eef6fb);
  animation: details-reveal 340ms var(--ease-out) both;
}

.version-inline-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.73rem;
  line-height: 1.9;
}

.version-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.detail-chip {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #dce7ef;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.detail-chip:hover {
  border-color: #b6cde0;
  background: #fafdff;
  box-shadow: var(--shadow-xs);
}

.detail-chip strong {
  color: var(--text-faint);
  font-size: 0.64rem;
}

.detail-chip span {
  overflow-wrap: anywhere;
  color: var(--navy-800);
  font-size: 0.69rem;
  line-height: 1.75;
}

.detail-chip small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-soft);
  font-size: 0.63rem;
  line-height: 1.7;
}

.panel-empty,
.external-panel,
.empty-search {
  display: grid;
  min-height: 160px;
  place-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
}

.empty-search {
  grid-column: 1 / -1;
  border-style: dashed;
  background: var(--surface-alt);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  padding: 0.15rem;
}

.latest-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #d3e0ea;
  border-radius: var(--radius);
  cursor: pointer;
  background: linear-gradient(160deg, #ffffff, #f8fbfd);
  box-shadow: var(--shadow-xs);
  color: var(--text);
  font: inherit;
  text-align: right;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.latest-card:hover {
  border-color: #9bbbd4;
  background: linear-gradient(160deg, #ffffff, #f1f7fb);
  box-shadow: var(--shadow-sm);
}

.latest-card-image {
  min-height: 130px;
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.latest-card-image img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  transition: transform var(--duration) var(--ease-out);
}

.latest-card:hover .latest-card-image img {
  transform: scale(1.04);
}

.latest-card:hover .latest-card-image {
  border-color: #b5ccdf;
  background:
    radial-gradient(circle at 50% 10%, rgba(237, 106, 30, 0.18), transparent 47%),
    linear-gradient(160deg, #ffffff, #eaf3f9);
  box-shadow: inset 0 0 0 1px rgba(237, 106, 30, 0.05);
}

.latest-card h3 {
  min-height: 2.8em;
  margin: 0.35rem 0 0;
  color: var(--navy-900);
  font-size: 0.78rem;
  line-height: 1.75;
}

.release-meta {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.release-note {
  color: var(--navy-700);
  font-size: 0.7rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: var(--page-width);
  margin: 0 auto 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid #c9d9e6;
}

.footer-copy {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.72rem;
  text-align: center;
}

.footer-copy a {
  color: var(--navy-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(244, 109, 27, 0.52);
  text-underline-offset: 0.24rem;
  transition: color var(--duration) var(--ease-out), text-decoration-color var(--duration) var(--ease-out);
}

.footer-copy a:hover {
  color: var(--orange-600);
  text-decoration-color: currentColor;
}

.is-enhanced .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.is-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-enhanced .page-shell > .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.is-enhanced .page-shell > .reveal:nth-child(3) {
  transition-delay: 120ms;
}

button:not(:disabled):active,
a.button:active,
.version-link:active {
  transform: scale(0.975);
}

@keyframes loader-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 109, 27, 0.3);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(244, 109, 27, 0);
  }
}

@keyframes ambient-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.6vw, 1.1vw, 0) scale(1.08);
  }
}

@keyframes hero-orbit {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(1.5rem, 0.8rem, 0) rotate(8deg);
  }
}

@keyframes hero-glow {
  from {
    opacity: 0.54;
    transform: scale(0.94);
  }
  to {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes details-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .lookup-layout,
  .finder-layout {
    grid-template-columns: 1fr;
  }

  .product-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .version-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --page-width: min(100vw - 28px, 1220px);
  }

  .site-header {
    padding: 9px 0;
  }

  .header-shell {
    min-height: 57px;
    padding: 0.4rem 0.5rem;
  }

  .brand-logo-shell {
    width: 45px;
    height: 45px;
  }

  .brand-logo {
    width: 45px;
    max-width: 45px;
    content: url("../assets/brand/ipsw-mark.svg");
  }

  .main-nav {
    display: none;
  }

  .header-home {
    width: 36px;
    height: 36px;
  }

  .lookup-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finder-toolbar {
    grid-template-columns: 1fr;
  }

  .product-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    gap: 3.25rem;
    padding-top: 1.2rem;
    padding-bottom: 3.25rem;
  }

  .hero-copy {
    min-height: 0;
    padding: 1.25rem;
  }

  .hero-panel,
  .finder-shell,
  .lookup-shell {
    padding: 1rem;
  }

  .hero h1 {
    margin-top: 1.25rem;
    font-size: 1.55rem;
  }

  .hero-lead {
    font-size: 0.82rem;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .hero-highlight {
    justify-content: center;
    min-height: 55px;
    padding: 0.45rem;
    font-size: 0.61rem;
    text-align: center;
  }

  .hero-highlight i {
    display: none;
  }

  .hero-actions,
  .version-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .version-link {
    width: 100%;
  }

  .hero-update-copy {
    display: grid;
    gap: 0.04rem;
  }

  .section-head {
    margin-bottom: 0.9rem;
  }

  .lookup-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lookup-tab {
    padding: 0.65rem;
  }

  .lookup-tab img {
    width: 32px;
    height: 32px;
  }

  .lookup-layout,
  .lookup-guide-visual,
  .lookup-guide-grid,
  .version-inline-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-item {
    min-height: 45px;
  }

  .product-tabs {
    gap: 0.55rem;
  }

  .product-tab {
    min-height: 60px;
    gap: 0.45rem;
    padding: 0.6rem;
  }

  .product-tab img {
    width: 33px;
    height: 33px;
  }

  .product-tab strong {
    font-size: 0.69rem;
  }

  .product-tab small {
    font-size: 0.61rem;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .device-media {
    min-height: 128px;
  }

  .device-media img {
    width: 116px;
    height: 116px;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .latest-card {
    gap: 0.5rem;
    padding: 0.65rem;
  }

  .latest-card-image {
    min-height: 104px;
  }

  .latest-card-image img {
    width: 90px;
    height: 90px;
  }

  .latest-card h3 {
    font-size: 0.67rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
