/* ========================================================
   K1-INSU.COM — Premium Insurance Landing Page
   Design System & Full Styles
   ======================================================== */

/* ── Design Tokens ── */
:root {
  /* Primary Palette */
  --primary-50: #e8f4fd;
  --primary-100: #c5e3fa;
  --primary-200: #9dd0f6;
  --primary-300: #6dbbf1;
  --primary-400: #42a8ec;
  --primary-500: #1a8fd6;
  --primary-600: #1477b8;
  --primary-700: #0f5f97;
  --primary-800: #0a4773;
  --primary-900: #052f4f;

  /* Accent */
  --accent-red: #e53935;
  --accent-orange: #ff7043;

  /* Neutrals */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 40px rgba(26, 143, 214, 0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease-out);
}

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

ul {
  list-style: none;
}

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

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}

@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].animated {
  animation-fill-mode: forwards;
}

[data-animate="fade-up"].animated {
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

[data-animate="fade-left"].animated {
  animation: fadeLeft 1s var(--ease-out) forwards;
}


/* ========================================
   HEADER
   ======================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  z-index: 1000;
  transition: all 0.4s var(--ease-out);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--gray-900);
}

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(26, 143, 214, 0.3);
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}


/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 620px;
  padding: calc(var(--header-height) + 60px) 0 120px;
  background: linear-gradient(165deg, #e8f4fd 0%, #c5e3fa 30%, #dfe9f3 60%, #f5f8ff 100%);
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(26, 143, 214, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(26, 143, 214, 0.25);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-600);
  background: rgba(26, 143, 214, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  position: relative;
  color: var(--accent-red);
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 10px;
  background: rgba(229, 57, 53, 0.12);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 60px;
  box-shadow: 0 4px 20px rgba(26, 143, 214, 0.35);
  transition: all 0.4s var(--ease-spring);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(26, 143, 214, 0.45);
}

.hero-cta svg {
  transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Hero Image */
.hero-image {
  position: relative;
  flex-shrink: 0;
  width: 420px;
}

.hero-image-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(26, 143, 214, 0.15) 0%, transparent 70%);
  filter: blur(30px);
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-image img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}


/* ========================================
   PRODUCTS BAR
   ======================================== */
.products-bar {
  position: relative;
  padding: 0;
  margin-top: -40px;
  z-index: 10;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.product-icon {
  width: 52px;
  height: 52px;
  color: var(--primary-500);
  transition: all 0.4s var(--ease-out);
}

.product-card:hover .product-icon {
  color: var(--primary-600);
  transform: scale(1.1);
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  transition: color 0.3s;
}

.product-card:hover .product-name {
  color: var(--primary-600);
}

.product-hover-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.product-card:hover .product-hover-line {
  transform: scaleX(1);
}


/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 0 80px;
  text-align: center;
  background: var(--gray-50);
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  margin-bottom: 48px;
}

.cta-card {
  display: inline-block;
}

.cta-card-inner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600), #4f8cff);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.4s var(--ease-spring);
}

.cta-card-inner:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl), 0 0 60px rgba(26, 143, 214, 0.3);
}

.cta-card-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(26, 143, 214, 0.12) 0%, transparent 70%);
  border-radius: inherit;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

.cta-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 380px;
  height: 200px;
  background: linear-gradient(145deg, var(--primary-400), var(--primary-600));
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  color: #fff;
}

.cta-button-text {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.cta-button-accent {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--accent-red);
  text-shadow: 0 2px 12px rgba(229, 57, 53, 0.4), 0 0 40px rgba(229, 57, 53, 0.15);
  margin-top: 4px;
}

.cta-button-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}


/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 100px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  padding: 40px 32px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: all 0.4s var(--ease-spring);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
  background: #fff;
}

.about-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  color: var(--primary-500);
  background: var(--primary-50);
  border-radius: 50%;
  transition: all 0.4s var(--ease-out);
}

.about-card:hover .about-card-icon {
  background: var(--primary-100);
  transform: scale(1.08);
}

.about-card-icon svg {
  width: 36px;
  height: 36px;
}

.about-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.about-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}


/* ========================================
   NOTICES SECTION
   ======================================== */
.notices-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, #e8f0f8 100%);
}

.notice-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.notice-block:hover {
  box-shadow: var(--shadow-md);
}

.notice-block:last-child {
  margin-bottom: 0;
}

.notice-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 112, 67, 0.1);
  color: var(--accent-orange);
  border-radius: 50%;
  margin-bottom: 20px;
}

.notice-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.notice-content p {
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 15px;
  color: var(--gray-600);
}

.notice-content p:last-child {
  margin-bottom: 0;
}

.notice-highlight {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--gray-800) !important;
  padding: 16px 20px;
  background: rgba(255, 112, 67, 0.06);
  border-left: 4px solid var(--accent-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notice-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
}

.notice-reference {
  font-weight: 600;
  color: var(--gray-700) !important;
}

.deposit-notice p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 16px;
}

.deposit-notice p:last-child {
  margin-bottom: 0;
}


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-content {
  padding-bottom: 40px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-300);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-list li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.footer-list li:last-child {
  margin-bottom: 0;
}

.footer-indent {
  padding-left: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}


/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 80px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.mobile-nav-close:hover {
  color: var(--gray-900);
}

.mobile-nav-list li {
  margin-bottom: 8px;
}

.mobile-nav-list li a {
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.mobile-nav-list li a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-image {
    width: 340px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  #main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section {
    padding: calc(var(--header-height) + 40px) 0 100px;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-image {
    width: 280px;
    order: -1;
    margin-bottom: 20px;
  }

  .products-bar {
    margin-top: -20px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .product-card {
    padding: 20px 10px;
  }

  .product-icon {
    width: 40px;
    height: 40px;
  }

  .product-name {
    font-size: 13px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 32px 24px;
  }

  .cta-button {
    width: 300px;
    height: 160px;
  }

  .notice-block {
    padding: 32px 24px;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-button {
    width: 260px;
    height: 140px;
  }

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

  .notice-highlight {
    font-size: 15px !important;
    padding: 12px 16px;
  }

  .footer-list li {
    font-size: 12px;
  }
}


/* ========================================
   SCROLL-TO-TOP (optional enhancement)
   ======================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
  z-index: 500;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
