/* ===========================
   Heartly Official Website
   index.css
=========================== */

:root {
    --red: #e8394a;
    --red-light: #fef0f2;
    --red-dark: #c42d3c;
    --blue: #2d7dd2;
    --blue-light: #eef5fd;
    --orange: #e8832a;
    --orange-light: #fef4ec;
    --green: #2da05a;
    --green-light: #edf8f2;
    --text-dark: #111827;
    --text-mid: #374151;
    --text-soft: #6b7280;
    --text-muted: #9ca3af;
    --bg-page: #f9fafb;
    --bg-white: #ffffff;
    --bg-section: #f3f4f6;
    --border: #e5e7eb;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.09);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
    --transition: 0.25s ease;
    --max-w: 1100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }

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

/* ===========================
   Navigation
=========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav-scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    flex-shrink: 0;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
}

.nav-links a:hover {
    color: var(--red);
}

.nav-cta {
    flex-shrink: 0;
    padding: 8px 20px;
    background: var(--red);
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Buttons
=========================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--red);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(232,57,74,0.3);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,57,74,0.35);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ===========================
   Hero
=========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    max-width: var(--max-w);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 34px;
}

.hero-actions {
    margin-bottom: 20px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.hero-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.hero-phone-wrap {
    position: relative;
    width: 280px;
}

.hero-phone {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--bg-white);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.hero-float-1 {
    top: 18%;
    left: -52px;
    color: var(--red);
}

.hero-float-1 svg { color: var(--red); }

.hero-float-2 {
    bottom: 22%;
    right: -44px;
    color: var(--green);
}

.hero-float-2 svg { color: var(--green); }

/* ===========================
   Section Shared
=========================== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 520px;
    margin: 0 auto;
}

/* ===========================
   Features Overview
=========================== */
.section-overview {
    padding: 96px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px 24px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-red { background: var(--red-light); color: var(--red); }
.feature-icon-blue { background: var(--blue-light); color: var(--blue); }
.feature-icon-orange { background: var(--orange-light); color: var(--orange); }
.feature-icon-green { background: var(--green-light); color: var(--green); }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.65;
}

/* ===========================
   Screenshots
=========================== */
.section-screenshots {
    padding: 96px 0;
    background: var(--bg-page);
}

.screenshots-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.screenshot-item {
    display: flex;
    align-items: center;
    gap: 64px;
}

.screenshot-item-right {
    flex-direction: row;
}

.screenshot-phone {
    flex-shrink: 0;
    width: 240px;
}

.screenshot-phone img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.screenshot-text {
    flex: 1;
    min-width: 0;
}

.screenshot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    background: var(--red-light);
    color: var(--red);
}

.screenshot-tag-blue { background: var(--blue-light); color: var(--blue); }
.screenshot-tag-orange { background: var(--orange-light); color: var(--orange); }
.screenshot-tag-green { background: var(--green-light); color: var(--green); }
.screenshot-tag-red { background: var(--red-light); color: var(--red); }

.screenshot-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.screenshot-text h3 strong {
    color: var(--red);
    font-weight: 800;
}

.screenshot-text p {
    font-size: 0.97rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 22px;
}

.screenshot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.screenshot-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
    font-weight: 500;
}

.screenshot-list li svg {
    flex-shrink: 0;
    color: var(--green);
}

/* ===========================
   Beyond Data
=========================== */
.section-beyond {
    padding: 96px 0;
    background: var(--bg-white);
}

.beyond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.beyond-card {
    padding: 32px 28px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.beyond-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.beyond-icon {
    width: 54px;
    height: 54px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.beyond-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.beyond-card p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.65;
}

/* ===========================
   Tips
=========================== */
.section-tips {
    padding: 64px 0;
    background: #fef9f0;
    border-top: 1px solid #fde8c0;
    border-bottom: 1px solid #fde8c0;
}

.tips-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

.tips-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #fff3dc;
    color: var(--orange);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tips-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.tips-content > p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-mid);
}

.tips-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--orange);
}

/* ===========================
   Disclaimer
=========================== */
.section-disclaimer {
    padding: 96px 0;
    background: var(--bg-page);
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.disclaimer-card {
    padding: 28px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.disclaimer-icon {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    color: var(--text-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.disclaimer-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.disclaimer-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ===========================
   Subscription
=========================== */
.section-subscription {
    padding: 64px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.subscription-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
}

.subscription-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.subscription-text > p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 14px;
}

.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-list li {
    font-size: 0.88rem;
    color: var(--text-soft);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.subscription-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* ===========================
   CTA
=========================== */
.section-cta {
    padding: 96px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.cta-inner h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.cta-inner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
}

/* ===========================
   Footer
=========================== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.footer-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-soft);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--red);
}

.footer-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-email a {
    color: var(--text-soft);
    transition: color var(--transition);
}

.footer-email a:hover {
    color: var(--red);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   Scroll Reveal
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 90px;
        min-height: auto;
        padding-bottom: 48px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-note {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-phone-wrap {
        width: 220px;
    }

    .hero-float-1 { left: -20px; }
    .hero-float-2 { right: -20px; }

    .screenshot-item,
    .screenshot-item-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 36px;
    }

    .screenshot-phone {
        width: 200px;
    }

    .screenshot-list li {
        justify-content: center;
    }

    .tips-inner,
    .subscription-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tips-list li,
    .subscription-list li {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px 24px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        gap: 16px;
        align-items: flex-start;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-overview,
    .section-screenshots,
    .section-beyond,
    .section-disclaimer {
        padding: 64px 0;
    }

    .screenshots-list {
        gap: 56px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .beyond-grid {
        grid-template-columns: 1fr;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr;
    }

    .section-cta {
        padding: 64px 0;
    }
}
