/* =========================================================
   ALL4SMS Landing - style.css (Full)
   Glassmorphism + Bento Grid + Responsive + Mobile Fixes
   ========================================================= */

/* ---------- Root / Theme ---------- */
:root {
  --primary-navy: #1A1A40;
  --primary-blue: #2A5D85;
  --accent-blue: #8ABFE8;

  --white: #ffffff;
  --bg-grey: #f0f2f5;

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 12px 40px rgba(16, 24, 40, 0.12);

  --text-main: #1A1A40;
  --text-muted: rgba(26, 26, 64, 0.7);

  --radius-xl: 22px;
  --radius-lg: 16px;

  --container: 1100px;

  --btn-radius: 14px;

  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.12);
  --shadow-strong: 0 16px 50px rgba(17, 24, 39, 0.18);

  --stroke: rgba(26, 26, 64, 0.14);
  --stroke-strong: rgba(26, 26, 64, 0.22);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-main);
  background: radial-gradient(1200px 800px at 15% 20%, rgba(138, 191, 232, 0.35), transparent 60%),
              radial-gradient(1200px 800px at 80% 40%, rgba(42, 93, 133, 0.25), transparent 55%),
              linear-gradient(180deg, #edf3ff 0%, #f7f9ff 60%, #ffffff 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.center {
  text-align: center;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Background Globes ---------- */
.background-globes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.globe {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.9;
  transform: translateZ(0);
}

.globe-1 {
  width: 520px;
  height: 520px;
  left: -180px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(138, 191, 232, 0.65), rgba(138, 191, 232, 0.12) 65%, transparent 70%);
}

.globe-2 {
  width: 560px;
  height: 560px;
  right: -220px;
  top: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(42, 93, 133, 0.55), rgba(42, 93, 133, 0.10) 65%, transparent 70%);
}

.globe-3 {
  width: 560px;
  height: 560px;
  left: 20%;
  bottom: -280px;
  background: radial-gradient(circle at 30% 30%, rgba(26, 26, 64, 0.30), rgba(26, 26, 64, 0.06) 65%, transparent 70%);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
}

/* ---------- Header ---------- */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 26, 64, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary-navy);
  font-size: 18px;
}

.nav-links {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(26, 26, 64, 0.12);
  color: var(--primary-navy);
}

.btn-secondary:hover {
  border-color: rgba(26, 26, 64, 0.20);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.10);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 13px 18px;
  font-size: 15px;
}

.btn-xl {
  padding: 16px 22px;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 70px 0 40px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  color: var(--primary-navy);
}

.highlight {
  color: var(--primary-blue);
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 18px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Hero Visual */
.hero-card {
  padding: 22px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.fallback-visual {
  position: relative;
  height: 300px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.message-bubble {
  width: fit-content;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
}

.message-bubble.received {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 26, 64, 0.10);
  color: var(--primary-navy);
}

.message-bubble.sent {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(138, 191, 232, 0.95), rgba(42, 93, 133, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.security-shield {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 26, 64, 0.10);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.14);
}

/* Optional floating animation class used in HTML */
.floating-animation {
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ---------- Benefits / Bento ---------- */
.benefits-section {
  padding: 42px 0 30px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.bento-item {
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  position: relative;
}

.bento-item h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.bento-item p {
  font-size: 14px;
}

.icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 26, 64, 0.10);
}

.icon-wrapper svg {
  color: var(--primary-navy);
}

/* grid spans */
.item-1 { grid-column: span 6; }
.item-2 { grid-column: span 6; }
.item-3 { grid-column: span 7; }
.item-4 { grid-column: span 5; }

/* ---------- Why Section ---------- */
.why-section {
  padding: 44px 0 36px;
}

.why-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.why-text .section-title {
  margin-bottom: 14px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.why-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-xl);
}

.check-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(138, 191, 232, 0.35);
  border: 1px solid rgba(26, 26, 64, 0.10);
  font-weight: 900;
  color: var(--primary-navy);
}

.why-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.why-item p {
  margin: 0;
  font-size: 14px;
}

.security-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.lock-animation {
  opacity: 0.95;
  transform: translateZ(0);
  animation: lockPulse 3.8s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 34px 0 48px;
}

.cta-card {
  padding: 28px 22px;
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
}

/* ---------- Footer ---------- */
.footer {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(26, 26, 64, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(26, 26, 64, 0.75);
  font-weight: 600;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.divider {
  opacity: 0.5;
}

copyright,
.copyright {
  margin: 0;
  font-size: 13px;
  color: rgba(26, 26, 64, 0.65);
}

/* =========================================================
   MOBILE FIXES (Your screenshot overlap fix)
   ========================================================= */

/* Many overlaps happen because the hero visual is absolute-like / decorative.
   On mobile: stack layout + reduce/hide decorations. */
@media (max-width: 900px) {
  .hero-container,
  .why-container {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-card {
    min-height: 280px;
  }

  .bento-grid {
    gap: 12px;
  }

  .item-1, .item-2, .item-3, .item-4 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-container {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-buttons {
    gap: 10px;
  }

  /* IMPORTANT: stop any weird overlay on mobile */
  .hero-visual,
  .hero-card,
  .fallback-visual {
    position: relative;
  }

  /* Hide purely decorative pieces that can overlap content on small screens */
  .security-shield {
    display: none !important;
  }

  /* If you have any “vertical text badge” in your HTML/CSS,
     these class names cover common cases. Keep them hidden on mobile. */
  .vertical-text,
  .floating-badge,
  .badge-vertical,
  .status-vertical,
  .msg-vertical {
    display: none !important;
  }

  .message-bubble {
    max-width: 92%;
    font-size: 14px;
  }

  .hero-card {
    padding: 18px;
  }

  .cta-card {
    padding: 22px 16px;
  }

  .btn-lg { width: 100%; }
  .btn-xl { width: 100%; }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 16px;
  }

  .btn {
    padding: 11px 14px;
  }

  .hero-title {
    font-size: 28px;
  }
}

/* ---------- Accessibility / Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .floating-animation,
  .lock-animation {
    animation: none !important;
  }

  .btn {
    transition: none !important;
  }
}
