/* Local font files — no external requests */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.ttf") format("truetype");
}
@font-face {
  font-family: "Space Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spacemono-400italic.ttf") format("truetype");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/spacemono-400.ttf") format("truetype");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/spacemono-700.ttf") format("truetype");
}

/* Inogate — plain CSS, mobile-first
   Brand: dark #0f1115, gray #1e2128, silver #c0c5d0, orange #ff5a00
*/

:root {
  --brand-dark: #0f1115;
  --brand-gray: #1e2128;
  --brand-silver: #c0c5d0;
  --brand-orange: #ff5a00;
  --brand-orange-hover: #ff7a2e;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", "Consolas", "Courier New", monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --container-pad: clamp(1rem, 4vw, 1.5rem);
  --touch-min: 44px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body.page {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--brand-silver);
  background: var(--brand-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS: reduce tap delay on interactive elements */
  touch-action: manipulation;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

::selection {
  background: var(--brand-orange);
  color: #fff;
}

.app {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--brand-dark);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: clamp(0.75rem, 2vw, 1rem);
  padding-bottom: clamp(0.75rem, 2vw, 1rem);
  min-height: calc(var(--touch-min) + 0.5rem);
}

.logo {
  height: 22px;
  width: auto;
  max-width: min(240px, 58vw);
  flex-shrink: 0;
  display: block;
}

@media (min-width: 380px) {
  .logo {
    height: 26px;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .logo {
    height: 28px;
  }
}

.header__status {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-orange);
}

@media (min-width: 768px) {
  .header__status {
    display: flex;
  }
}

.header__ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  animation: ping-slow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.header__status-text {
  white-space: nowrap;
}

/* ——— Hero ——— */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Comfortable minimum height on phones (dynamic viewport) */
  min-height: min(100dvh, 900px);
  min-height: min(100svh, 900px);
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(4rem, 12vw, 7rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Slightly favor GPU-friendly compositing on mobile */
  transform: translateZ(0);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.8);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 65% 50%,
    rgba(255, 90, 0, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 3rem 3rem;
  pointer-events: none;
}

.hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 90, 0, 0.3),
    transparent
  );
  animation: scanH 6s ease-in-out infinite;
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-color: rgba(255, 90, 0, 0.5);
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero__corner {
    width: 3rem;
    height: 3rem;
  }
}

.hero__corner--tl {
  top: 1rem;
  left: 1rem;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-left-style: solid;
  border-radius: 0.25rem 0 0 0;
}

.hero__corner--tr {
  top: 1rem;
  right: 1rem;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-radius: 0 0.25rem 0 0;
}

.hero__corner--bl {
  bottom: 1rem;
  left: 1rem;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-style: solid;
  border-left-style: solid;
  border-radius: 0 0 0 0.25rem;
}

.hero__corner--br {
  bottom: 1rem;
  right: 1rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-style: solid;
  border-right-style: solid;
  border-radius: 0 0 0.25rem 0;
}

.hero__meta {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(192, 197, 208, 0.3);
  pointer-events: none;
  max-width: 42%;
}

.hero__meta--left {
  left: var(--container-pad);
}

.hero__meta--right {
  right: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero__secure-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@media (max-width: 480px) {
  .hero__meta {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero__col {
  max-width: 42rem;
}

.hero__badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

@media (min-width: 640px) {
  .hero__badge-wrap {
    justify-content: flex-start;
    margin-bottom: 2rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 90, 0, 0.3);
  background: rgba(255, 90, 0, 0.05);
  backdrop-filter: blur(6px);
}

@media (min-width: 640px) {
  .badge {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand-orange);
  animation: pulse-dot 2s ease-in-out infinite;
}

@media (min-width: 640px) {
  .badge__dot {
    width: 8px;
    height: 8px;
  }
}

.badge__text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

@media (min-width: 640px) {
  .badge__text {
    font-size: 0.75rem;
  }
}

.hero__title {
  margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 6vw, 3.75rem);
}

.hero__accent {
  position: relative;
  display: inline-block;
  color: var(--brand-orange);
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .hero__accent {
    margin-top: 0.5rem;
  }
}

.hero__accent-line {
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--brand-orange), transparent);
}

.hero__lead {
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
  font-size: clamp(0.9rem, 2.8vw, 1.125rem);
  color: rgba(192, 197, 208, 0.8);
  line-height: 1.6;
  max-width: 36rem;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.contact-item__icon {
  flex-shrink: 0;
  width: var(--touch-min);
  height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--brand-gray);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--brand-orange);
  transition: border-color 0.2s ease;
}

.contact-item:hover .contact-item__icon,
.contact-item:focus-within .contact-item__icon {
  border-color: rgba(255, 90, 0, 0.5);
}

.contact-item__label {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(192, 197, 208, 0.5);
}

.contact-item__link,
.contact-item__text {
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.45;
}

.contact-item__link {
  text-decoration: none;
  padding: 0.125rem 0;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.contact-item__link:hover,
.contact-item__link:focus-visible {
  color: var(--brand-orange);
  outline: none;
}

.contact-item__link:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-item__link--break {
  word-break: break-word;
}

/* ——— Form section ——— */
.section-form {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(30, 33, 40, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: clamp(2.5rem, 8vw, 4rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}

.section-form__inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-form__title {
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-form__title-bar {
  width: 4px;
  height: 1.5rem;
  background: var(--brand-orange);
  flex-shrink: 0;
  border-radius: 1px;
}

.form-alert {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.form-alert--success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.form-alert--error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.form-alert:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(192, 197, 208, 0.6);
}

.field__input {
  width: 100%;
  /* 16px+ on mobile avoids iOS zoom on focus */
  font-size: max(16px, 0.875rem);
  line-height: 1.4;
  color: #fff;
  background: rgba(15, 17, 21, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  min-height: var(--touch-min);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.field__input::placeholder {
  color: rgba(192, 197, 208, 0.35);
}

.field__input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.field__input--textarea {
  min-height: max(7rem, var(--touch-min));
  resize: vertical;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-min);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-orange);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
  background: var(--brand-orange-hover);
}

.btn-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-submit:hover .btn-submit__icon,
.btn-submit:focus-visible .btn-submit__icon {
  transform: translateX(4px);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--brand-dark);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(1rem, 3vw, 1.5rem);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(192, 197, 208, 0.4);
}

.footer__secure {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(192, 197, 208, 0.4);
}

.footer__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
}

/* ——— Animations ——— */
@keyframes scanH {
  0% {
    top: 5%;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    top: 95%;
    opacity: 0;
  }
}

@keyframes ping-slow {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scan,
  .header__ping,
  .hero__secure-dot,
  .badge__dot {
    animation: none !important;
  }
  .btn-submit:hover .btn-submit__icon,
  .btn-submit:focus-visible .btn-submit__icon {
    transform: none;
  }
}
