/* ================================================================
   Nav & Hero
   ================================================================ */

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 254, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(251, 251, 254, 0.94);
}
[data-theme="dark"] .nav { background: rgba(10,18,48,0.82); }
[data-theme="dark"] .nav.scrolled { background: rgba(10,18,48,0.95); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 12px -2px rgba(17,28,68,0.35);
}
.nav-logo-mark::after {
  content: "";
  position: absolute;
  right: -4px; top: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.nav-logo-mark svg { color: white; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: background 0.15s;
}
.nav-links a:hover { background: var(--surface-tint); color: var(--ink); }

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

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface-tint);
  place-items: center;
}
/* Burger button (3-line hamburger) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface-tint);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu dropdown */
.nav-mobile {
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-mobile a:hover { background: var(--surface-tint); color: var(--ink); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-burger { display: grid; }
  .burger { display: flex; }
  .nav .container { padding-left: 28px; padding-right: 28px; }
}

/* ---- HERO ---- */
.hero {
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero-bg-1 {
  top: -100px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-200), transparent 65%);
}
.hero-bg-2 {
  top: 80px; right: -150px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--sky-soft), transparent 65%);
}
.hero-bg-3 {
  bottom: -120px; left: 30%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--mint-soft), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy h1 { margin-top: 20px; }
.hero-copy h1 .line {
  display: block;
}
.hero-copy .lede { margin-top: 24px; max-width: 540px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  align-items: center;
}
.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}
.hero-trust .ti {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-trust svg { color: var(--mint); }

/* Hero visual: LINE + calendar mockup */
.hero-stage {
  position: relative;
  height: 560px;
  display: grid;
  place-items: center;
}
@media (max-width: 960px) {
  .hero-stage { height: 520px; }
}

.phone {
  position: absolute;
  width: 260px;
  height: 520px;
  background: #0c1433;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--sh-float), 0 0 0 2px rgba(17,28,68,0.1);
  z-index: 2;
  left: 8%;
  top: 10px;
  transform: rotate(-6deg);
  animation: floaty 6s ease-in-out infinite;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #06c755;
  background: linear-gradient(180deg, #e6f9ee 0%, #f5fbf7 100%);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0c1433;
  border-radius: 999px;
  z-index: 10;
}
.line-header {
  padding: 30px 14px 12px;
  background: white;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}
.line-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  display: grid; place-items: center; color: white;
  font-family: var(--font-rounded); font-weight: 800; font-size: 13px;
}
.line-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.line-online { font-size: 10px; color: var(--mint); display: flex; align-items: center; gap: 4px; }
.line-online::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
}

.line-body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.line-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
  animation: slideUp 0.5s var(--ease) both;
}
.line-bubble.in {
  align-self: flex-start;
  background: white;
  border-top-left-radius: 4px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.line-bubble.out {
  align-self: flex-end;
  background: #8be67e;
  background: linear-gradient(135deg, #9be88d, #7ad968);
  color: #0b3010;
  border-top-right-radius: 4px;
}
.line-bubble .time {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  margin-top: 3px;
}
.line-card {
  align-self: flex-start;
  background: white;
  border-radius: 14px;
  padding: 10px;
  width: 85%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  animation: slideUp 0.5s var(--ease) both;
}
.line-card-title {
  font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.line-card-chip {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.line-input {
  padding: 8px 10px;
  background: white;
  border-top: 1px solid #eee;
  display: flex; align-items: center; gap: 8px;
}
.line-input-box {
  flex: 1; height: 26px; border-radius: 14px;
  background: var(--surface-tint);
  display: flex; align-items: center; padding: 0 10px;
  font-size: 10px; color: var(--ink-muted);
}
.line-send {
  width: 26px; height: 26px; border-radius: 50%; background: var(--line-green);
  display: grid; place-items: center; color: white;
}

/* Calendar card (main visual) */
.cal-card {
  position: absolute;
  width: 480px;
  max-width: 95%;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-float);
  padding: 24px;
  right: 0;
  top: 40px;
  z-index: 3;
  transform: rotate(2deg);
  animation: floaty 7s ease-in-out infinite reverse;
}
@media (max-width: 540px) {
  .cal-card { width: 100%; padding: 18px; transform: rotate(0); }
  .phone { left: 0; top: 300px; transform: rotate(-4deg) scale(0.7); transform-origin: left top; }
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cal-title {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.cal-title-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 10px -2px rgba(255,138,91,0.5);
}
.cal-btn.generating {
  background: var(--navy-700);
  box-shadow: 0 4px 10px -2px rgba(17,28,68,0.35);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 11px;
}
.cal-dow {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-muted);
  padding: 6px 0;
}
.cal-dow.sun { color: var(--accent-600); }
.cal-dow.sat { color: var(--sky); }

.cal-cell {
  aspect-ratio: 1 / 1.15;
  border-radius: 10px;
  padding: 5px 4px 4px;
  position: relative;
  background: var(--surface-tint);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 10px;
}
.cal-cell.blank { background: transparent; }
.cal-cell .daynum {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
}
.cal-cell.today {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: var(--accent-50);
}
.cal-cell.today .daynum { color: var(--accent-600); }
.cal-shift {
  height: 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  transform-origin: left;
  animation: chipPop 0.4s var(--ease) both;
}
.cal-shift.early { background: var(--accent); }
.cal-shift.late { background: var(--sky); }
.cal-shift.night { background: var(--navy-700); }
.cal-shift.off { background: var(--navy-200); }

.cal-legend {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
}
.cal-legend .lg {
  display: inline-flex; align-items: center; gap: 5px;
}
.cal-legend .sw {
  width: 10px; height: 10px; border-radius: 3px;
}

/* Floating badges around hero */
.hero-chip {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--sh-md);
  z-index: 4;
  animation: floaty 5s ease-in-out infinite;
}
.hero-chip .ic {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  color: white;
}
.hero-chip.c1 { top: 20px; right: 30px; animation-delay: 0.3s; }
.hero-chip.c1 .ic { background: var(--mint); }
.hero-chip.c2 { bottom: 40px; left: 55%; animation-delay: 0.8s; }
.hero-chip.c2 .ic { background: var(--sky); }
.hero-chip.c3 { bottom: 80px; right: 8%; animation-delay: 1.2s; }
.hero-chip.c3 .ic { background: var(--accent); }

@media (max-width: 540px) {
  .hero-chip { display: none; }
  .hero-chip.c1 { display: inline-flex; top: 0; right: 10px; font-size: 11px; padding: 8px 12px; }
}
