/* ==========================================================================
   Landing page — page-specific styles.
   Shared base/nav/animations live in assets/notion.css.
   ========================================================================== */

/* ===================== HERO ===================== */
.hero {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-height: 80vh;
}

.hero__inner {
    animation: fade-in-up 0.8s var(--ease);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 999px;
    color: var(--grad-start);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.hero__dot {
    width: 8px;
    height: 8px;
    background: var(--grad-start);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
    animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25); }
    50%      { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.hero__title .gradient-text {
    display: inline-block;
    min-width: 7ch;
    text-align: left;
    border-right: 3px solid var(--grad-end);
    animation: caret 1s steps(1) infinite;
}
@keyframes caret {
    50% { border-color: transparent; }
}

.hero__lead {
    font-size: 1.15rem;
    color: var(--text-soft);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.stat {
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--grad-start), var(--grad-end)) 1;
    padding-left: 1rem;
}
.stat__num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__visual {
    position: relative;
    height: 480px;
    perspective: 1200px;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}
.orb-1 { width: 280px; height: 280px; top: 0; left: 20%;
    background: radial-gradient(circle, var(--grad-start), transparent 70%); animation: float 14s infinite; }
.orb-2 { width: 240px; height: 240px; bottom: 10%; right: 0;
    background: radial-gradient(circle, var(--grad-end), transparent 70%); animation: float 16s infinite -4s; }
.orb-3 { width: 200px; height: 200px; top: 40%; left: 0;
    background: radial-gradient(circle, var(--grad-accent), transparent 70%); animation: float 18s infinite -8s; }

.hero__card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-md);
    animation: levitate 6s ease-in-out infinite;
}
.hero__card i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__card--1 { top: 8%;  left: 14%; animation-delay: 0s; }
.hero__card--2 { top: 22%; right: 6%; animation-delay: -1.5s; }
.hero__card--3 { bottom: 28%; left: 4%; animation-delay: -3s; }
.hero__card--4 { bottom: 8%; right: 14%; animation-delay: -4.5s; }

@keyframes levitate {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== DASHBOARD WIDGET ===================== */
.dashboard {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}
.dashboard__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.dashboard__head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, var(--text), var(--grad-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard__head p { color: var(--text-soft); font-size: 1rem; }

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.dash-tile {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.25rem;
    overflow: hidden;
    transition: all var(--t-med) var(--ease);
}
.dash-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med) var(--ease);
}
.dash-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.dash-tile:hover::before { transform: scaleX(1); }

.dash-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
    margin-bottom: 1rem;
}

.dash-tile__value {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.25rem;
}
.dash-tile__value small {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.35em;
}

.dash-tile__label {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.dash-tile__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--grad-start);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--t-fast) var(--ease);
}
.dash-tile__link i { transition: transform var(--t-fast) var(--ease); }
.dash-tile__link:hover { color: var(--grad-end); }
.dash-tile__link:hover i { transform: translateX(3px); }

@media (max-width: 480px) {
    .dashboard__grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .dash-tile { padding: 1.1rem 1rem; }
    .dash-tile__value { font-size: 1.4rem; }
    .dash-tile__label { font-size: 0.75rem; }
}

/* ===================== FEATURE SECTIONS ===================== */
.feature-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.feature-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--grad-start);
    background: rgba(124, 58, 237, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.feature-section__head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, var(--text), var(--grad-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feature-section__head p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.feature-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--t-med) var(--ease);
    transform-style: preserve-3d;
    overflow: hidden;
    cursor: default;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.08));
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
    pointer-events: none;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--t-med) var(--ease);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }

.feature-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    transition: transform var(--t-med) var(--ease);
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}
.feature-card:hover .feature-card__icon {
    transform: rotate(-6deg) scale(1.08);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.feature-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--grad-start);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--t-fast) var(--ease);
}
.feature-card__cta i {
    transition: transform var(--t-fast) var(--ease);
}
.feature-card__cta:hover {
    color: var(--grad-end);
}
.feature-card__cta:hover i {
    transform: translateX(4px);
}

/* ===================== SECTION FIGURE (illustrations) ===================== */
.section-figure {
    margin: 3.5rem auto 0;
    max-width: 760px;
    padding: 1rem;
    text-align: center;
    position: relative;
}
.section-figure::before {
    content: '';
    position: absolute;
    inset: 10% 5%;
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(236,72,153,0.18));
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
}
.section-figure img {
    max-width: 100%;
    height: auto;
    max-height: 460px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: transform var(--t-med) var(--ease);
}
.section-figure img:hover {
    transform: translateY(-6px) scale(1.01);
}

/* ===================== QUOTE STRIP ===================== */
.quote-strip {
    max-width: 720px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}
.quote-strip img {
    max-width: 100%;
    max-height: 320px;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(124, 58, 237, 0.18));
    animation: levitate 6s ease-in-out infinite;
}

/* ===================== TEMPLATES COLLAGE ===================== */
.templates {
    max-width: var(--container);
    margin: 0 auto;
    padding: 5rem 1.5rem 6rem;
}
.templates__head {
    text-align: center;
    margin-bottom: 3rem;
}
.templates__head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0.5rem 0;
}
.templates__head p { color: var(--text-soft); }

.templates__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 1.25rem;
}
.tpl {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    text-align: left;
    font-family: inherit;
    transition: all var(--t-med) var(--ease);
    gap: 0.4rem;
}
.tpl i { font-size: 1.85rem; align-self: flex-start; margin-bottom: auto; }
.tpl__title { font-weight: 700; font-size: 1rem; }
.tpl__sub   { font-size: 0.85rem; color: var(--text-soft); }
.tpl:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.tpl--feature {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.08));
    position: relative;
    overflow: hidden;
    padding-right: 45%;
}
.tpl--feature i { font-size: 3rem; }
.tpl--feature .tpl__title { font-size: 1.4rem; }
.tpl--feature .tpl__sub { max-width: 100%; }
.tpl__preview {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    top: 0.75rem;
    width: 40%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-med) var(--ease);
    pointer-events: none;
}
.tpl--feature:hover .tpl__preview {
    transform: translateY(-4px) rotate(-1deg);
}

/* ===================== FOOTER ===================== */
.site-footer {
    margin-top: 4rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--border);
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
}
.foot_brand p {
    color: var(--text-soft);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 280px;
}
.foot_info p {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.foot_info a {
    display: block;
    color: var(--text-soft);
    text-decoration: none;
    padding: 0.35rem 0;
    transition: all var(--t-fast) var(--ease);
    font-size: 0.92rem;
}
.foot_info a:hover {
    color: var(--grad-start);
    transform: translateX(4px);
}
.site-footer__bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.author-link {
    color: var(--grad-start);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    transition: all var(--t-fast) var(--ease);
    position: relative;
}
.author-link::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-fast) var(--ease);
    border-radius: 2px;
}
.author-link:hover {
    color: var(--grad-end);
    background: rgba(124, 58, 237, 0.08);
}
.author-link:hover::after { transform: scaleX(1); }
.author-link i { font-size: 1rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
        min-height: auto;
    }
    .hero__visual {
        height: 320px;
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .hero__lead, .stat {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions, .hero__stats {
        justify-content: center;
    }
    .templates__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .site-footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-figure { margin-top: 2.5rem; }
}

@media (max-width: 720px) {
    .hero { padding: 1rem 1rem 2rem; gap: 1.5rem; }
    .hero__visual { display: none; }
    .orb-1 { width: 200px; height: 200px; }
    .orb-2 { width: 180px; height: 180px; }
    .orb-3 { width: 160px; height: 160px; }
    .hero__title { font-size: 2.5rem; }
    .hero__lead { font-size: 1rem; }
    .hero__actions { gap: 0.75rem; }
    .hero__actions .notion-btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.88rem;
    }
    .hero__stats { gap: 1.5rem; }
    .stat__num { font-size: 1.6rem; }
    .templates__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .tpl { min-height: 140px; }
    .tpl--feature {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 180px;
        padding-right: 1.25rem;
    }
    .tpl__preview { display: none; }
    .feature-section { padding: 3rem 1rem; }
    .feature-section__head h2 { font-size: 1.8rem; }
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem 1.5rem;
    }
    .section-figure { margin-top: 2rem; padding: 0.5rem; }
}

@media (max-width: 480px) {
    .hero { padding-top: 0; }
    .hero__title { font-size: 2rem; }
    .hero__badge { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
    .hero__actions { flex-direction: column; width: 100%; max-width: 280px; margin-left: auto; margin-right: auto; }
    .hero__actions .notion-btn { width: 100%; }
    .hero__stats { gap: 1rem; justify-content: space-around; width: 100%; }
    .stat { padding-left: 0.6rem; }
    .stat__num { font-size: 1.4rem; }
    .stat__label { font-size: 0.72rem; }
    .templates__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .tpl--feature { grid-column: span 1; grid-row: span 1; }
    .quote-strip { margin: 2rem auto; }
}
