:root {
  --bg-deep: #070b12;
  --bg-mid: #0d1420;
  --panel: #f4f6f9;
  --panel-soft: #e8ecf2;
  --ink: #12171f;
  --ink-muted: #5a6578;
  --crm: #1fa8a0;
  --interview: #e8942a;
  --white: #ffffff;
  --radius: 1.25rem;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  --panel-width: 380px;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Figtree", sans-serif;
  --accent-oops: #e8942a;
  --accent-continue: #1fa8a0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Animated geometric background ——— */
.geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(31, 168, 160, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(232, 148, 42, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(61, 139, 253, 0.08), transparent 60%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #0a1018 100%);
  overflow: hidden;
}

.geo-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.geo-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.55;
}

.geo-shape.line-h {
  height: 1px;
  width: 48vw;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  top: 28%;
  left: 4%;
  animation: pulse-line 4s ease-in-out infinite, drift-x 18s ease-in-out infinite;
}

.geo-shape.line-v {
  width: 1px;
  height: 42vh;
  border: none;
  background: linear-gradient(180deg, transparent, rgba(31, 168, 160, 0.42), transparent);
  top: 36%;
  right: 24%;
  animation: pulse-line 5.5s ease-in-out infinite 0.6s, drift-y 16s ease-in-out infinite;
}

.geo-shape.line-h-2 {
  top: 62%;
  left: 28%;
  width: 38vw;
  background: linear-gradient(90deg, transparent, rgba(232, 148, 42, 0.35), transparent);
  animation: pulse-line 3.6s ease-in-out infinite 0.8s, drift-x 14s ease-in-out infinite reverse;
}

.geo-shape.line-v-2 {
  top: 12%;
  right: 48%;
  height: 28vh;
  background: linear-gradient(180deg, transparent, rgba(61, 139, 253, 0.4), transparent);
  animation: pulse-line 4.8s ease-in-out infinite 1.2s, drift-y 12s ease-in-out infinite reverse;
}

.geo-shape.diamond {
  width: 54px;
  height: 54px;
  bottom: 12%;
  right: 12%;
  transform: rotate(45deg);
  border-color: rgba(232, 148, 42, 0.45);
  animation: float-diamond 9s ease-in-out infinite 0.5s;
}

.geo-shape.ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: 8%;
  right: 6%;
  border-color: rgba(31, 168, 160, 0.35);
  animation: drift 14s ease-in-out infinite;
}

.geo-shape.ring-sm {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  bottom: 18%;
  left: 10%;
  border-color: rgba(232, 148, 42, 0.4);
  animation: drift 11s ease-in-out infinite reverse;
}

.geo-shape.triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid rgba(61, 139, 253, 0.12);
  top: 55%;
  right: 18%;
  animation: spin-slow 28s linear infinite;
  transform-origin: 50% 70%;
}

.geo-shape.square {
  width: 90px;
  height: 90px;
  top: 22%;
  left: 18%;
  transform: rotate(18deg);
  border-color: rgba(255, 255, 255, 0.14);
  animation: float-y 10s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 22px) scale(1.08); }
  66% { transform: translate(18px, -16px) scale(0.96); }
}

@keyframes drift-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(40px); }
}

@keyframes drift-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-36px); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(-28px) rotate(28deg); }
}

@keyframes float-diamond {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-22px) rotate(58deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.95; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ——— Layout ——— */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  animation: fade-down 0.7s ease both;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-text span {
  display: block;
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.28rem;
}

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-panel {
  width: min(100%, 320px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #f4f6f9 100%);
  color: var(--ink);
  border-radius: 1.5rem;
  padding: clamp(1.85rem, 4.5vw, 2.4rem) clamp(1.4rem, 4vw, 2rem) 1.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.45);
  animation: fade-up 0.75s ease 0.12s both;
  position: relative;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
}

.phone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(160deg, #eef3f8 0%, #e3e9f1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: phone-float 3.2s ease-in-out infinite;
}

.phone-icon svg {
  width: 40px;
  height: 40px;
}

.oops-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--accent-oops);
  margin: 0.15rem 0 0.95rem;
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 3.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.7rem;
}

.home-continue {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--accent-continue);
  margin: 0;
}

.iphone-block {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(18, 23, 31, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.btn-iphone {
  appearance: none;
  border: 1px solid rgba(18, 23, 31, 0.12);
  background: #fff;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.42rem 0.85rem;
  border-radius: 0.55rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 23, 31, 0.04);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-iphone:hover {
  color: var(--ink);
  border-color: rgba(18, 23, 31, 0.22);
  transform: translateY(-1px);
}

.btn-iphone[aria-expanded="true"] {
  color: var(--accent-continue);
  border-color: rgba(31, 168, 160, 0.4);
  background: rgba(31, 168, 160, 0.08);
}

.iphone-note {
  max-width: 100%;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 0.75rem;
  background: #eef3f8;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  animation: fade-up 0.28s ease both;
}

.iphone-note[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .site {
    padding: 1rem 1rem 1.5rem;
  }

  .site-header {
    margin-bottom: 1.25rem;
  }

  .site-main {
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .home-panel {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .geo-shape.ring {
    width: 180px;
    height: 180px;
  }

  .geo-shape.triangle {
    border-left-width: 42px;
    border-right-width: 42px;
    border-bottom-width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
