@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@400;600;700&display=swap");
/* ============================================================
   Baby Life Tracker — Premium Official Website
   暖白・珊瑚橘・薄荷綠，零 AI 感，家庭呵護
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@400;600;700&display=swap');

/* === Variables === */
:root {
    --bg: #FFFBF7;
    --bg2: #FFF3EB;
    --surface: #FFFFFF;
    --coral: #E07A5F;
    --coral-light: #F4A898;
    --coral-dark: #C4624A;
    --mint: #81B29A;
    --yellow: #F2CC8F;
    --text: #3D405B;
    --muted: #7A7A8C;
    --border: #F0E4DC;
    --radius: 28px;
    --radius-sm: 14px;
    --radius-xs: 8px;
    --font: 'Noto Sans TC', -apple-system, sans-serif;
    --font-serif: 'Noto Serif TC', Georgia, serif;
    --shadow: 0 2px 24px rgba(80,50,30,0.08);
    --shadow-lg: 0 8px 40px rgba(80,50,30,0.13);
    --shadow-float: 0 20px 60px rgba(80,50,30,0.18);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font); color: var(--text); background: var(--bg);
    line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--text); }
:focus-visible { outline: 2px dashed var(--coral); outline-offset: 3px; border-radius: 4px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* === Layout Helpers === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-title {
    font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 700; color: var(--text); text-align: center;
    letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub {
    font-size: 1.0625rem; color: var(--muted); text-align: center;
    max-width: 560px; margin: 0 auto 52px; line-height: 1.8;
}

/* === Header === */
.bl-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,251,247,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: box-shadow 0.3s var(--ease);
}
.bl-header.scrolled { box-shadow: var(--shadow); }
.bl-header-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.bl-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); min-height: 44px; }
.bl-logo:hover { opacity: 0.85; }
.bl-logo-img { height: 42px; width: auto; max-width: 100px; object-fit: contain; }
.bl-logo-text { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.bl-nav { display: flex; align-items: center; gap: 2px; }
.bl-nav a {
    padding: 8px 14px; font-size: 0.9375rem; font-weight: 500; color: var(--muted);
    border-radius: var(--radius-xs); transition: all 0.25s var(--ease);
}
.bl-nav a:hover { color: var(--coral-dark); background: var(--bg2); }
.bl-nav-cta {
    background: var(--coral) !important; color: #fff !important; font-weight: 600 !important;
    padding: 9px 20px !important; border-radius: 50px !important; margin-left: 8px;
    transition: all 0.25s var(--ease) !important;
}
.bl-nav-cta:hover { background: var(--coral-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,122,95,0.3); }

.bl-lang-dropdown { position: relative; }
.bl-lang-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px;
    font-size: 0.9375rem; font-weight: 500; color: var(--muted);
    background: transparent; border: 1.5px solid var(--border);
    border-radius: 50px; cursor: pointer; transition: all 0.25s var(--ease);
}
.bl-lang-btn:hover { border-color: var(--coral-light); color: var(--coral-dark); background: var(--bg2); }
.bl-lang-btn-arrow { font-size: 0.6rem; transition: transform 0.25s; }
.bl-lang-dropdown.is-open .bl-lang-btn-arrow { transform: rotate(180deg); }
.bl-lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 120px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 6px; z-index: 200; display: none; flex-direction: column;
}
.bl-lang-dropdown.is-open .bl-lang-menu { display: flex; }
.bl-lang-item {
    display: block; width: 100%; padding: 7px 14px; font-size: 0.9375rem;
    color: var(--text); border-radius: var(--radius-xs); transition: background 0.15s;
}
.bl-lang-item:hover { background: var(--bg2); }
.bl-lang-item-current { font-weight: 600; color: var(--coral-dark); background: var(--bg2); }

.bl-hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none;
    border: none; border-radius: var(--radius-xs); cursor: pointer; transition: background 0.2s;
}
.bl-hamburger:hover { background: var(--bg2); }
.bl-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s var(--ease); }
.bl-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bl-hamburger.active span:nth-child(2) { opacity: 0; }
.bl-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bl-mobile-nav {
    display: none; position: fixed; inset: 0;
    background: rgba(255,251,247,0.97); backdrop-filter: blur(24px);
    z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px;
}
.bl-mobile-nav.open { display: flex; }
.bl-mobile-nav a {
    display: block; width: 100%; max-width: 300px; text-align: center;
    padding: 14px 24px; font-size: 1.0625rem; font-weight: 500;
    color: var(--text); border-radius: var(--radius-sm); transition: background 0.2s;
}
.bl-mobile-nav a:hover { background: var(--bg2); color: var(--coral-dark); }
.bl-mobile-nav .bl-nav-cta { margin-top: 12px; width: 100%; max-width: 300px; text-align: center; }

/* === HERO === */
.bl-hero {
    position: relative; padding: 80px 0 100px;
    background: var(--bg); overflow: hidden;
}
.bl-hero::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(224,122,95,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.bl-hero::after {
    content: ''; position: absolute; bottom: -80px; left: -60px;
    width: 350px; height: 350px;
    background: radial-gradient(ellipse, rgba(129,178,154,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.bl-hero-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    position: relative; z-index: 1;
}
.bl-hero-caption {
    display: inline-block; font-size: 0.8125rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--coral); background: rgba(224,122,95,0.1);
    padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.bl-hero-title {
    font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.03em;
    color: var(--text); margin-bottom: 16px;
}
.bl-hero-slogan {
    font-size: clamp(1rem, 2vw, 1.1875rem); color: var(--muted);
    line-height: 1.8; max-width: 460px; margin-bottom: 32px;
}
.bl-hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bl-badge { border-radius: 10px; overflow: hidden; display: inline-flex; transition: all 0.3s var(--ease); box-shadow: var(--shadow); }
.bl-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bl-badge:active { transform: scale(0.97); }
.bl-badge-img { height: 46px; width: auto; display: block; }

/* Hero phone visual */
.bl-hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.bl-phone-wrap {
    position: relative; width: 255px; height: 510px;
    perspective: 1000px;
}
.bl-phone {
    width: 100%; height: 100%; background: #1a1a2e; border-radius: 38px;
    padding: 9px; box-shadow: var(--shadow-float);
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    transition: transform 0.4s var(--ease);
}
.bl-phone:hover { transform: perspective(1000px) rotateY(-1deg) rotateX(1deg) translateY(-8px); }
.bl-phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden; position: relative; }
.bl-phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 96px; height: 22px; background: #1a1a2e;
    border-radius: 0 0 14px 14px; z-index: 2;
}
.bl-phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Float elements */
.bl-hero-float { position: absolute; pointer-events: none; }
.bl-float-1 { top: 10%; right: -8px; animation: fl1 6s ease-in-out infinite; }
.bl-float-2 { bottom: 20%; left: -14px; animation: fl2 8s ease-in-out infinite 1s; }
.bl-float-3 { top: 38%; right: 8px; animation: fl3 7s ease-in-out infinite 0.5s; }
.bl-float-4 { bottom: 8%; right: 18%; animation: fl1 9s ease-in-out infinite 2s; }
@keyframes fl1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes fl2 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-12px) rotate(5deg)} }
@keyframes fl3 { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-10px)} }

/* === STATS BAR === */
.bl-stats { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%); padding: 48px 0; }
.bl-stats-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.bl-stat { text-align: center; color: #fff; padding: 8px; }
.bl-stat-num {
    font-family: var(--font-serif); font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700; line-height: 1; margin-bottom: 4px; display: block;
}
.bl-stat-lbl { font-size: 0.9375rem; opacity: 0.88; }

/* === ABOUT === */
.bl-about { background: var(--bg2); padding: 96px 0; }
.bl-about-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; text-align: center; }
.bl-about-desc { font-size: 1.0625rem; color: var(--muted); line-height: 2; max-width: 720px; margin: 0 auto; }

/* === FEATURES === */
.bl-features { background: var(--bg); padding: 96px 0; }
.bl-features-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bl-feature-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.bl-feature-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
    border: 1.5px solid transparent; transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.bl-feature-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--coral); transform: scaleY(0); transition: transform 0.3s ease; border-radius: 0 2px 2px 0;
}
.bl-feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.bl-feature-card:hover::before { transform: scaleY(1); }
.bl-feature-icon {
    width: 48px; height: 48px; background: rgba(224,122,95,0.1);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 1.5rem; line-height: 1;
}
.bl-feature-icon svg { width: 26px; height: 26px; color: var(--coral); display: block; }
.bl-feature-card h3 { font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.bl-feature-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }

/* === USECASES === */
.bl-usecases { background: var(--surface); padding: 96px 0; }
.bl-usecases-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bl-usecase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.bl-usecase-card {
    border-radius: var(--radius); padding: 36px 28px; text-align: center;
    transition: all 0.3s var(--ease);
}
.bl-usecase-card:hover { transform: translateY(-4px); }
.bl-usecase-card:nth-child(1) { background: rgba(242,204,143,0.2); }
.bl-usecase-card:nth-child(2) { background: rgba(129,178,154,0.15); }
.bl-usecase-card:nth-child(3) { background: rgba(224,122,95,0.1); }
.bl-usecase-icon { width: 68px; height: 68px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; line-height: 1; }
.bl-usecase-card h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.bl-usecase-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }

/* === SCREENSHOTS === */
.bl-screens { background: var(--bg2); padding: 96px 0; overflow: hidden; }
.bl-screens-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bl-screens-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.bl-screen-item { display: flex; justify-content: center; }
.bl-phone-frame {
    width: 100%; max-width: 280px; aspect-ratio: 9/19;
    background: #1a1a2e; border-radius: 36px; padding: 8px;
    box-shadow: var(--shadow-lg);
}
.bl-phone-frame-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden; position: relative; }
.bl-phone-frame-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 90px; height: 20px; background: #1a1a2e;
    border-radius: 0 0 14px 14px; z-index: 2;
}
.bl-phone-frame-img { width: 100%; height: 100%; object-fit: cover; }

/* === FAQ === */
.bl-faq { background: var(--bg); padding: 96px 0; }
.bl-faq-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.bl-faq-list {}
.bl-faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden;
    transition: box-shadow 0.2s;
}
.bl-faq-item:hover { box-shadow: var(--shadow); }
.bl-faq-item dt {
    padding: 18px 22px; font-weight: 600; font-size: 1.0625rem;
    color: var(--text); cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 16px; list-style: none;
}
.bl-faq-item dt::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--coral); transition: transform 0.3s; flex-shrink: 0; }
.bl-faq-item.open dt::after { transform: rotate(45deg); }
.bl-faq-item dd { padding: 0 22px 18px; font-size: 0.9375rem; color: var(--muted); line-height: 1.8; display: none; }
.bl-faq-item.open dd { display: block; }

/* === CTA === */
.bl-cta { background: linear-gradient(135deg, var(--text) 0%, #2a2a3e 100%); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.bl-cta::before { content: ''; position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; background: radial-gradient(ellipse, rgba(224,122,95,0.2) 0%, transparent 70%); pointer-events: none; }
.bl-cta-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.bl-cta-title { font-family: var(--font-serif); font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 36px; }
.bl-footer-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.bl-cta .bl-badge:hover { transform: translateY(-4px) scale(1.02); }

/* === FOOTER === */
.bl-footer { background: #252535; padding: 52px 0 44px; text-align: center; color: rgba(255,255,255,0.5); }
.bl-footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bl-footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.bl-footer-logo img { height: 34px; width: auto; }
.bl-footer-logo span { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.bl-footer-nav { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-bottom: 24px; }
.bl-footer-nav a { color: rgba(255,255,255,0.5); font-size: 0.9375rem; padding: 5px 12px; border-radius: var(--radius-xs); transition: all 0.2s; }
.bl-footer-nav a:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.bl-footer-copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }

/* === ANIMATIONS === */
.bl-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.bl-fade-up.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .bl-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .bl-hero-visual { order: -1; }
    .bl-hero-slogan { margin-left: auto; margin-right: auto; }
    .bl-hero-badges { justify-content: center; }
    .bl-feature-grid { grid-template-columns: repeat(2,1fr); }
    .bl-usecase-grid { grid-template-columns: repeat(2,1fr); }
    .bl-screens-grid { grid-template-columns: repeat(2,1fr); }
    .bl-stats-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .bl-nav { display: none; }
    .bl-hamburger { display: flex; }
    .bl-hero { padding: 60px 0 72px; }
    .bl-phone-wrap { width: 200px; height: 400px; }
    .bl-phone { border-radius: 30px; padding: 7px; }
    .bl-phone-screen { border-radius: 24px; }
    .bl-phone-notch { width: 76px; height: 18px; border-radius: 0 0 12px 12px; }
    .bl-feature-grid { grid-template-columns: 1fr; gap: 14px; }
    .bl-usecase-grid { grid-template-columns: 1fr; }
    .bl-screens-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .bl-stats-inner { grid-template-columns: repeat(2,1fr); gap: 16px; }
    .section { padding: 64px 0; }
    .bl-phone-frame { border-radius: 28px; padding: 6px; max-width: 200px; aspect-ratio: 9/19; }
    .bl-phone-frame-screen { border-radius: 22px; }
    .bl-phone-frame-notch { width: 72px; height: 16px; border-radius: 0 0 10px 10px; }
}
@media (max-width: 480px) {
    .bl-phone-wrap { width: 165px; height: 330px; }
    .bl-phone { border-radius: 26px; padding: 5px; }
    .bl-phone-screen { border-radius: 20px; }
    .bl-phone-notch { width: 64px; height: 15px; border-radius: 0 0 8px 8px; }
    .bl-hero-badges { gap: 8px; }
    .bl-badge-img { height: 40px; }
    .bl-phone-frame { border-radius: 22px; padding: 5px; max-width: 165px; }
    .bl-phone-frame-notch { width: 64px; }
}
