@property --glow-c1 {
  syntax: '<color>';
  inherits: true;
  initial-value: transparent;
}

@property --glow-c2 {
  syntax: '<color>';
  inherits: true;
  initial-value: transparent;
}

/* Custom variables for Alcove style with Apple Blue */
:root {
  --bg-color: #F4F8FB;
  --bg-darker: #E5EDF4;
  --text-primary: #1C1E21;
  --text-secondary: #5F6368;
  --accent-blue: #007AFF;
  --accent-light: rgba(0, 122, 255, 0.2);
  --btn-bg: #1C1E21;
  --btn-text: #FFFFFF;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/*
  Custom mapping for Japanese mode:
  Ensures Hiragino Sans is ONLY used for Japanese characters (Kanji, Hiragana, Katakana, and Japanese symbols).
  This allows SF Pro Display or Pretendard to handle English and Numbers in the same stack.
*/
@font-face {
  font-family: "HiraginoOnly";
  src: local("Hiragino Sans"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Sans GB");
  unicode-range: U+3000-30FF, U+4E00-9FAF, U+FF00-FFEF;
}

html {
  --font-main: "SF Pro Display", "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

html[lang="jp"],
[lang="jp"] * {
  font-family: "SF Pro Display", "Inter", "HiraginoOnly", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif !important;
}

html[lang="cn"],
[lang="cn"] * {
  font-family: "SF Pro Display", "Inter", "PingFang SC", "Pretendard", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
}

html[lang="tw"],
[lang="tw"] * {
  font-family: "SF Pro Display", "Inter", "PingFang HK", "PingFang TC", "Pretendard", "Microsoft JhengHei", "Noto Sans TC", sans-serif !important;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--bg-color);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-left:hover {
  opacity: 0.8;
}

.logo-ice {
  width: 32px;
  height: 32px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-right a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-right a:hover {
  color: var(--accent-blue);
}

.lang-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-menu-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

.lang-menu-btn:hover,
.lang-menu-btn:focus {
  background: var(--accent-light);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.lang-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-width: 140px;
  overflow: hidden;
  z-index: 1001;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
  visibility: visible;
}

.lang-popup.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
}

.lang-option {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-option:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent-blue);
}

.btn-alcove-style {
  background: var(--bg-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.btn-alcove-style:hover,
.btn-alcove-style:focus {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.btn-alcove-style svg {
  fill: var(--text-primary);
}

.btn-alcove-style:hover svg {
  fill: var(--accent-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

/* Hero */
.hero {
  padding: 160px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.highlight-relative {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.highlight-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 140%;
  z-index: 10;
  /* Bring above text for hand-drawn feel */
  fill: transparent;
  stroke: var(--accent-blue);
  stroke-width: 3px;
  stroke-linecap: round;
  pointer-events: none;
  stroke-opacity: 0.85;
  /* Slight transparency for overlay effect */
}

.highlight-svg path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

.active .highlight-svg path {
  animation: drawHighlight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes drawHighlight {
  to {
    stroke-dashoffset: 0;
  }
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 80px;
}

.btn-primary-large {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 18px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary-large:hover,
.btn-primary-large:focus {
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 0 0 6px var(--accent-light);
}

/* Purchase pill button */
.btn-purchase-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-darker, #E5EDF4);
  color: var(--text-primary, #1C1E21);
  padding: 18px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.btn-purchase-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 6px var(--accent-light);
  filter: brightness(0.96);
}

.purchase-icon {
  color: var(--text-secondary, #5F6368);
  flex-shrink: 0;
}

.purchase-price-badge {
  background: var(--btn-bg, #1C1E21);
  color: var(--btn-text, #fff);
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  letter-spacing: -0.01em;
}


/* --- REAL BROWSER MOCKUP (Matching Screenshot) --- */
.mockup-frame {
  width: 95%;
  max-width: 1100px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: var(--transition);
}

/* Browser Chrome Elements */
.browser-chrome {
  background: #e7ebf1;
  /* Chromium top bar color */
  padding: 8px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chrome-tab-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #28c940;
}

.chrome-tab {
  background: #fff;
  padding: 5px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
}

.chrome-address-bar {
  background: #fff;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 0.8rem;
  color: #666;
  width: 100%;
  margin-top: 5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mockup Content Area (Clean White) */
.mockup-content {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
}

.mock-now-bar {
  position: absolute;
  top: 40px;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.island-bg-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}

.island-bg {
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 0deg,
      var(--glow-c1, transparent),
      var(--glow-c2, transparent),
      var(--glow-c1, transparent),
      var(--glow-c2, transparent),
      var(--glow-c1, transparent));
  animation: spinSmooth 6s linear infinite;
  filter: blur(28px);
  opacity: 0.7;
  transition: --glow-c1 3s ease, --glow-c2 3s ease;
}

@keyframes spinSmooth {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Now Bar Themes */
.mock-now-bar.theme-sunrise {
  --glow-c1: #FF9500;
  --glow-c2: #FFCC00;
}

.mock-now-bar.theme-morning {
  --glow-c1: #007AFF;
  --glow-c2: #5AC8FA;
}

.mock-now-bar.theme-noon {
  --glow-c1: #FF2D55;
  --glow-c2: #FF9500;
}

.mock-now-bar.theme-sunset {
  --glow-c1: #FF5E3A;
  --glow-c2: #FF2D55;
}

.mock-now-bar.theme-twilight {
  --glow-c1: #5856D6;
  --glow-c2: #AF52DE;
}

.mock-now-bar.theme-night {
  --glow-c1: #2C3E50;
  --glow-c2: #4CA1AF;
}

#now-bar-text {
  position: relative;
  z-index: 1;
}

.mock-now-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1d1d1f;
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-now-bar::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #1d1d1f;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
}

.mock-now-bar:hover::after,
.mock-now-bar:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* News Box Widget */
.mock-news-box {
  position: absolute;
  left: 30px;
  width: 260px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  z-index: 5;
  border: 1px solid rgba(0, 0, 0, 0.02);
}



.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.news-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1d1d1f;
}

.refresh-icon {
  font-size: 0.9rem;
  color: #888;
  cursor: pointer;
  transition: transform 0.3s;
}

.refresh-icon:hover {
  transform: rotate(180deg);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow: hidden;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #999;
  font-weight: 600;
}

.news-footer {
  margin-top: 5px;
  font-size: 0.6rem;
  color: #bbb;
  border-top: 1px solid #f9f9f9;
  padding-top: 8px;
  text-align: right;
  font-weight: 500;
}

.center-display {
  text-align: center;
}

.mock-clock {
  font-size: 9rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
  letter-spacing: -3px;
}

.mock-date {
  font-size: 1.8rem;
  color: #666;
  font-weight: 600;
  margin-top: 10px;
}

/* Right Widgets */
.mock-sidebar {
  position: absolute;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-widget {
  width: 110px;
  height: 110px;
  background: rgba(245, 245, 247, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.widget-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.widget-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  line-height: 1.2;
}

.widget-label small {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1d1d1f;
  display: block;
  margin-top: 2px;
}

/* Bottom Dock */
.mock-dock {
  position: absolute;
  bottom: 40px;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 25px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.dock-item {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  cursor: pointer;
}

.dock-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dock-item:hover {
  transform: translateY(-10px) scale(1.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dock-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 5px;
}



/* Features Section */
.features-section {
  padding: 100px 60px;
  background: var(--bg-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  border-radius: 32px;
  background: transparent;
  transition: var(--transition);
}

.feature-box:hover {
  background: var(--bg-darker);
  transform: translateY(-5px);
}

.feature-icon-wrapper {
  font-size: 3rem;
  margin-bottom: 25px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--text-primary);
  color: #fff;
  transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-box p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.15rem;
  font-weight: 500;
}

/* Footer Section */
.main-footer {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-color);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-icon-box {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
  text-decoration: none;
}

.footer-icon-box svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.footer-icon-box:hover {
  background: var(--bg-darker);
  color: var(--accent-blue);
  transform: translateY(-5px);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .mock-clock {
    font-size: 7rem;
  }

  .mock-date {
    font-size: 1.5rem;
  }

  .mock-news-box {
    left: 15px;
    width: 220px;
  }

  .mock-sidebar {
    right: 15px;
  }

  .mock-widget {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .nav-right {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .nav-right.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .hero {
    padding: 100px 20px 60px;
    position: relative;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
  }

  .mockup-frame {
    width: 92%;
    max-width: 600px;
    margin: 0 auto;
  }

  .mockup-content {
    aspect-ratio: 4 / 3;
    max-height: 450px;
  }

  .mock-news-box,
  .mock-sidebar {
    display: none;
  }

  .mock-clock {
    font-size: 5rem;
    letter-spacing: -1px;
  }

  .mock-date {
    font-size: 1.2rem;
  }

  .mock-dock {
    bottom: 20px;
    padding: 8px 15px;
    gap: 8px;
    border-radius: 20px;
  }

  .dock-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .dock-item img {
    width: 18px;
    height: 18px;
  }

  .mock-now-bar {
    top: 15px;
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    padding: 0;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 12px;
  }

  .btn-primary-large,
  .btn-purchase-pill {
    padding: 14px 20px;
    font-size: 1.1rem;
  }

  .mockup-content {
    aspect-ratio: 4 / 5;
    max-height: 380px;
  }

  .mock-clock {
    font-size: 3.2rem;
  }

  .mock-date {
    font-size: 0.85rem;
  }

  .mock-now-bar {
    top: 12px;
    padding: 4px 12px;
    font-size: 0.7rem;
  }

  .mock-dock {
    bottom: 10px;
    gap: 5px;
    padding: 6px 12px;
  }

  .dock-item {
    width: 30px;
    height: 30px;
  }

  .chrome-tab {
    padding: 4px 8px;
    font-size: 0.6rem;
  }

  .dot {
    width: 9px;
    height: 9px;
  }
}