/* SecureFrame Official — matched to provided screenshots */

:root {
  --bg: #050b18;
  --bg-elevated: #0a1221;
  --card: #0f172a;
  --card-border: rgba(56, 120, 200, 0.22);
  --text: #ffffff;
  --text-muted: #8b9bb0;
  --text-soft: #c5d0de;
  --cyan: #38bdf8;
  --cyan-bright: #22d3ee;
  --lime: #b5ff48;
  --blue: #3b82f6;
  --blue-btn: #2563eb;
  --blue-btn-hover: #1d4ed8;
  --green: #22c55e;
  --green-soft: #4ade80;
  --cta-h: 88px;
  --max: 430px;
  --radius: 16px;
}

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

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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 11, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 120, 200, 0.12);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

/* ---------- Page shell ---------- */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px calc(var(--cta-h) + 28px);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.06);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--green-soft);
}

.hero-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.38;
  margin-bottom: 18px;
}

.accent-gradient {
  background: linear-gradient(90deg, #4cc9f0 0%, #67e8f9 35%, #b5ff48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.7;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-emphasis {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

/* ---------- Player mockup ---------- */

.player-wrap {
  margin-top: 28px;
}

.player {
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, #0e1a2e 0%, #0a1424 100%);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.06),
    0 0 40px rgba(14, 165, 233, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  gap: 8px;
}

.player-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.02em;
}

.player-label svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.player-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.player-screen {
  margin: 0 12px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(14, 116, 144, 0.22), transparent 70%),
    linear-gradient(180deg, #071018 0%, #0a1628 100%);
  border: 1px solid rgba(34, 211, 238, 0.12);
  padding: 12px 12px 14px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.player-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 30, 50, 0.85);
  border: 1px solid rgba(100, 140, 180, 0.2);
  color: #a8bdd4;
}

.tag-hd {
  color: var(--cyan);
  border: none;
  background: transparent;
  font-weight: 600;
  padding: 4px 0;
}

.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 8px 10px;
}

.shield-glow {
  position: relative;
  margin-bottom: 14px;
}

.shield-glow::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 68%);
  pointer-events: none;
}

.shield-icon {
  width: 72px;
  height: 72px;
  position: relative;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.45));
  animation: floatShield 3.2s ease-in-out infinite;
}

@keyframes floatShield {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.block-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.block-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #7dd3fc;
  letter-spacing: 0.02em;
}

.player-progress {
  margin-top: auto;
  padding-top: 8px;
}

.progress-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(100, 140, 180, 0.25);
  margin-bottom: 8px;
}

.progress-fill {
  width: 47%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 47%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0f7ff;
  border: 2px solid var(--cyan-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8aa0b8;
  font-variant-numeric: tabular-nums;
}

.player-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.foot-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.foot-left svg {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}

.foot-accent {
  color: var(--cyan);
  font-weight: 600;
}

/* ---------- Features ---------- */

.features {
  margin-top: 36px;
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-align: left;
}

.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}

.feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--blue);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.feature-lead {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

/* Empty media placeholder between features and specs */
.media-slot {
  height: 132px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}

/* ---------- Specs ---------- */

.specs {
  margin-top: 0;
}

.specs-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(56, 120, 200, 0.14);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.spec-val em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-ok {
  color: var(--green-soft);
}

/* ---------- Closing ---------- */

.closing {
  margin-top: 40px;
  text-align: center;
  padding: 8px 8px 12px;
}

.closing-line {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.closing-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.copyright {
  font-size: 11.5px;
  color: #6b7a8f;
}

/* ---------- Sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(5, 11, 24, 0.85) 28%, rgba(5, 11, 24, 0.98) 100%);
  pointer-events: none;
}

.sticky-cta .download-btn {
  pointer-events: auto;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: var(--blue-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    0 8px 28px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(147, 197, 253, 0.15) inset;
  transition: background 0.2s ease, transform 0.15s ease;
}

.download-btn:hover {
  background: var(--blue-btn-hover);
}

.download-btn:active {
  transform: scale(0.985);
}

.os-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 480px) {
  body {
    background:
      radial-gradient(ellipse 60% 40% at 50% 0%, rgba(30, 64, 120, 0.35), transparent 60%),
      var(--bg);
  }

  .hero-title {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shield-icon {
    animation: none;
  }
}
