/* =============================================================
   4 FORSEAL TECHNOLOGY - Landing Static
   ============================================================= */

:root {
  --primary: #002FA7;
  --primary-hover: #0025A0;
  --navy: #0B1836;
  --navy-deep: #050B1E;
  --bg: #F8FAFC;
  --paper: #FFFFFF;
  --text: #0F172A;
  --text-sec: #475569;
  --text-mut: #64748B;
  --border: #E2E8F0;
  --border-lt: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --content-max: 1180px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------- NAV ------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.nav-logo {
  height: 84px;
  width: auto;
}

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

.lang-btn {
  height: 36px;
  width: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  background: var(--bg);
}

.nav-cta {
  height: 40px;
  padding: 0 16px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ------------- HERO ------------- */
.hero {
  padding: 64px 24px 96px;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF2FF;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
}

.badge svg { width: 12px; height: 12px; }

.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  height: 52px;
  padding: 0 24px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  height: 52px;
  padding: 0 24px;
  background: white;
  color: var(--primary);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.trust-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sec);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 42px;
  border: 10px solid #0F172A;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25),
              0 20px 40px rgba(15, 23, 42, 0.15);
}

.phone::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 38%;
  right: 38%;
  height: 24px;
  background: #0F172A;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------- SECTIONS ------------- */
.section {
  padding: 80px 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-alt {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-mut);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ------------- INSTALL TABS ------------- */
.os-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.os-tab {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}

.os-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.os-tab:not(.active):hover {
  background: var(--bg);
}

.os-tab svg { width: 18px; height: 18px; }

.os-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #EEF2FF;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.step-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  padding-top: 4px;
}

.try-btn {
  margin-top: 20px;
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.try-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ------------- MOBILE INSTALL QR ------------- */
.mobile-install {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.mobile-install.hidden { display: none; }

.qr-wrap {
  position: relative;
  padding: 12px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#qrcode-target {
  padding: 6px;
  background: white;
  border-radius: 12px;
  display: block;
}

#qrcode-target svg,
#qrcode-target img {
  display: block;
  width: 200px;
  height: 200px;
}

.qr-corner {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.qr-corner svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.qr-steps {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-steps .step {
  padding: 4px 0;
}

/* ------------- TRY BUTTON (hide on mobile QR) ------------- */
.os-card .try-btn.hidden-mobile { display: none; }

/* ------------- FEATURES ------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: #EEF2FF;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-mut);
  line-height: 1.5;
}

/* ------------- SCREENSHOTS ------------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shot {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.shot:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.shot img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ------------- ABOUT ------------- */
.about-body {
  max-width: 780px;
}

.about-body p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-top: 16px;
}

/* ------------- CONTACT ------------- */
.contact-block {
  background: var(--navy);
  color: white;
  padding: 80px 24px;
}

.contact-block .container {
  padding: 0;
}

.contact-block .eyebrow {
  color: white;
  opacity: 0.7;
}

.contact-block h2 {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  color: white;
  display: block;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.contact-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 14px;
  color: white;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-line;
}

/* ------------- FOOTER ------------- */
.footer {
  background: var(--navy-deep);
  padding: 32px 24px;
  text-align: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 4px;
}

.footer-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 64px;
    gap: 32px;
  }
  .phone-wrap { order: -1; }
  .phone { width: 240px; height: 500px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shots-grid { grid-template-columns: 1fr; gap: 16px; }
  .shot { min-height: 400px; }
  .section { padding: 56px 24px; }
  .contact-block { padding: 56px 24px; }
  .os-card { padding: 24px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn-primary,
  .cta-row .btn-ghost { width: 100%; justify-content: center; }
  .phone { width: 220px; height: 460px; }
}

/* Hide element helper */
.hidden { display: none !important; }
