/* InfoStore Dev — industrial tech marketing site */
:root {
  --bg: #0a0c0e;
  --bg-soft: #11151a;
  --bg-panel: #161b22;
  --aluminum: #b8c0cc;
  --aluminum-bright: #e8edf4;
  --accent: #d4893a;
  --accent-hot: #ef9a45;
  --accent-dim: rgba(212, 137, 58, 0.16);
  --text: #f3f5f7;
  --muted: #9aa3ad;
  --line: rgba(184, 192, 204, 0.14);
  --success: #3d9b6e;
  --danger: #c45c4a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --max: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(212, 137, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(120, 150, 180, 0.1), transparent 50%),
    linear-gradient(180deg, #0d1116 0%, var(--bg) 40%, #080a0c 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--aluminum-bright);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Atmospheric grid */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(184, 192, 204, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.site {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 14, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand__logo {
  height: 28px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
}

.brand__dev {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer__logo {
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
}

@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(12, 15, 18, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #121212;
}

.btn--primary:hover {
  color: #000;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--aluminum-bright);
}

.btn--ghost:hover {
  border-color: var(--aluminum);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero — one composition */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__logo {
  width: min(100%, 420px);
  height: auto;
  margin: 0 0 0.75rem;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
}

.hero__brand-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--aluminum-bright);
}

.hero__brand-sub em {
  font-style: normal;
  color: var(--accent);
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1.25rem;
  color: var(--aluminum-bright);
}

.hero__brand em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero__lead {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero__glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 137, 58, 0.28), transparent 65%);
  filter: blur(8px);
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

/* Phone mock */
.phone {
  width: min(100%, 280px);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3038, #0e1115 45%, #1a1f26);
  border: 1px solid rgba(232, 237, 244, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone__screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(rgba(184, 192, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 192, 204, 0.05) 1px, transparent 1px),
    #050607;
  background-size: 24px 24px, 24px 24px, auto;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem 1rem;
}

.phone__notch {
  width: 42%;
  height: 8px;
  margin: 0 auto 1.4rem;
  border-radius: 999px;
  background: #1c2128;
}

.phone__label {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.phone__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.phone__sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 1rem;
}

/* Abstract UI placeholders — no brand logos */
.mock-ui {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1rem;
  flex: 1;
}

.mock-ui--compact {
  flex: 0;
  margin-bottom: 0.75rem;
}

.mock-ui__bar {
  height: 8px;
  width: 55%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(212, 137, 58, 0.25));
}

.mock-ui__row {
  height: 10px;
  width: 100%;
  border-radius: 6px;
  background: rgba(184, 192, 204, 0.12);
  border: 1px solid var(--line);
}

.mock-ui__row--mid {
  width: 78%;
}

.mock-ui__row--short {
  width: 62%;
}

.mock-ui__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.mock-ui__tiles span {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(212, 137, 58, 0.18), transparent 55%),
    rgba(184, 192, 204, 0.08);
  border: 1px solid var(--line);
}

.phone__cta {
  margin-top: auto;
  background: var(--accent);
  color: #111;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem;
  border-radius: 12px;
}

.phone--sm {
  width: min(100%, 220px);
  animation: none;
}

.phone-stack {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.phone-stack .phone:nth-child(2) {
  transform: translateY(-18px);
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .btn-row {
    justify-content: center;
  }

  .hero__visual {
    min-height: 360px;
    order: -1;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section__kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section__lead {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 2rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

/* Feature strips — not cards unless interactive */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feature__num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  padding-top: 0.2rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* App highlight band */
.app-band {
  background:
    linear-gradient(120deg, rgba(212, 137, 58, 0.12), transparent 45%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 4.5rem 0;
}

.app-band__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--aluminum);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 900px) {
  .app-band__grid {
    grid-template-columns: 1fr;
  }
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  padding: 0;
  border: 0;
  background: transparent;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service__rule {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* Gallery / screenshots */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery__item {
  margin: 0;
}

.gallery__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: stretch;
}

.gallery__frame--wide {
  aspect-ratio: 16 / 10;
}

.gallery__frame img,
.gallery__frame .phone {
  width: 100%;
  height: 100%;
}

.gallery__frame .phone {
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  animation: none;
}

.gallery figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__frame:not(.gallery__frame--wide) {
    max-width: 280px;
    margin-inline: auto;
  }
}

/* Legal pages */
.legal {
  padding: 3.5rem 0 5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent-hot);
  background: var(--accent-dim);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.contact a.btn {
  justify-self: start;
}

@media (max-width: 700px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer a {
  color: var(--aluminum);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-hot);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-aluminum {
  color: var(--aluminum);
}
