/*! Angel Samurai — a Ventus template (ventus.works)
 *  Free license: keep the Ventus badge visible. That's the whole deal.
 *  Want it badge-free? Commercial license: shop.ventus.works
 */

/* Angel Samurai — component styles.
 * Rule: components reference CSS variables ONLY (tokens.css / themes.css).
 * No literal colors below this line — that is what makes themes free.
 */

/* ================= Reset & base ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--leading-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease-dreamy), color 0.4s var(--ease-dreamy);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-heading);
    line-height: 1.25;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p {
    margin: 0 0 1em;
}

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

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-accent-soft);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.muted {
    color: var(--color-text-muted);
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease-dreamy), box-shadow 0.25s var(--ease-dreamy),
        background-color 0.25s var(--ease-dreamy), color 0.25s var(--ease-dreamy);
}

.btn:hover {
    text-decoration: none;
    transform: var(--lift);
}

/* Sizes */
.btn--sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn--md { padding: 0.7rem 1.6rem; font-size: 0.95rem; }
.btn--lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }

/* Variants */
.btn--primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-glow);
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-heading);
    border-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
    border-color: var(--color-accent);
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
}

.btn--ghost:hover {
    background: var(--color-accent-soft);
}

/* ================= Header / nav ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--color-surface) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand:hover { text-decoration: none; }

.brand__mark {
    width: 0.85em;
    height: 0.85em;
    border-radius: 50% 0 50% 0;
    background: var(--gradient-brand);
    flex: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s var(--ease-dreamy), color 0.2s var(--ease-dreamy);
}

.nav a:hover {
    background: var(--color-accent-soft);
    color: var(--color-heading);
    text-decoration: none;
}

.nav a[aria-current="page"] {
    background: var(--color-accent-soft);
    color: var(--color-primary);
    font-weight: 600;
}

.nav .btn { margin-left: 0.5rem; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--color-heading);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-dreamy), opacity 0.3s var(--ease-dreamy);
}

@media (max-width: 800px) {
    .nav-toggle { display: block; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-float);
        display: none;
    }

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

    .nav a { padding: 0.75rem 1rem; }

    .nav .btn { margin: 0.5rem 0 0; }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ================= Hero ================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-sky);
    padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--color-surface) 65%, transparent);
    backdrop-filter: blur(6px);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-heading);
    margin-bottom: 1.75rem;
}

.hero h1 {
    margin-bottom: 0.4em;
}

.hero__title-accent {
    display: block;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary); /* fallback if clip unsupported */
}

.hero__lede {
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

.hero__cloud {
    position: absolute;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-surface) 45%, transparent);
    filter: blur(28px);
    pointer-events: none;
}

.hero__cloud--1 { top: 12%; left: 6%; width: 180px; height: 70px; }
.hero__cloud--2 { top: 24%; right: 10%; width: 130px; height: 55px; }
.hero__cloud--3 { bottom: 14%; left: 22%; width: 220px; height: 80px; opacity: 0.7; }

.hero__content { position: relative; z-index: 2; }

/* Page hero (inner pages, shorter) */
.hero--page { padding: clamp(3rem, 7vw, 5rem) 0; }

/* Sakura particle layer (petals injected by js/main.js) */
.sakura-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.sakura-layer .sakura-petal {
    position: absolute;
    top: -5vh;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at center, var(--petal-a) 0%, var(--petal-b) 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    .sakura-layer { display: none; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dragon divider — S-curve section separator */
.dragon-divider {
    display: block;
    width: 100%;
    height: 70px;
    color: var(--color-accent);
}

/* ================= Cards / panels ================= */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s var(--ease-dreamy), box-shadow 0.25s var(--ease-dreamy);
}

.card:hover {
    transform: var(--lift);
    box-shadow: var(--shadow-float);
}

.card--soft {
    background: var(--color-surface-soft);
}

.card__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    margin-bottom: 1.1rem;
}

/* ================= Grids ================= */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ================= Stats band ================= */
.stats {
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-float);
}

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-on-primary);
    line-height: 1.1;
}

.stat__label {
    color: var(--color-on-primary);
    opacity: 0.85;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================= Testimonials ================= */
.testimonial {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.testimonial__quote {
    font-size: 1.02rem;
    font-style: italic;
    color: var(--color-text);
    flex: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    border: 2px solid var(--color-accent-soft);
}

.testimonial__name {
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.3;
}

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

/* ================= Pricing ================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

.price-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card--featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.price-card__flag {
    position: absolute;
    top: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.price-card__tier {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.price-card__amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.1;
}

.price-card__amount small {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.price-card__features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    flex: 1;
}

.price-card__features li {
    padding: 0.45rem 0 0.45rem 1.7rem;
    position: relative;
    border-bottom: 1px dashed var(--color-border);
}

.price-card__features li:last-child { border-bottom: 0; }

.price-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50% 0 50% 0;
    background: var(--gradient-sakura);
}

.price-card__features li.is-excluded {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-card__features li.is-excluded::before {
    background: var(--color-border);
}

/* ================= FAQ accordion ================= */
.faq {
    max-width: 760px;
    margin-inline: auto;
    display: grid;
    gap: 0.85rem;
}

.faq__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    text-align: left;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
}

.faq__chevron {
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease-dreamy);
}

.faq__question[aria-expanded="true"] .faq__chevron {
    transform: rotate(-135deg);
}

.faq__answer {
    padding: 0 1.35rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-dreamy), padding 0.35s var(--ease-dreamy);
    color: var(--color-text-muted);
}

.faq__item.is-open .faq__answer {
    padding: 0 1.35rem 1.25rem;
    max-height: 320px;
}

/* ================= Gallery ================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s var(--ease-dreamy), box-shadow 0.25s var(--ease-dreamy);
}

.gallery__item:hover {
    transform: var(--lift);
    box-shadow: var(--shadow-float);
}

.gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-on-primary);
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-heading) 75%, transparent));
}

/* ================= Timeline ================= */
.timeline {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    padding-left: 2.25rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: var(--color-accent);
    opacity: 0.5;
}

.timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
    content: "";
    position: absolute;
    left: -2.25rem;
    top: 0.35rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50% 0 50% 0;
    background: var(--gradient-brand);
    box-shadow: var(--shadow-soft);
}

.timeline__date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.timeline__title {
    margin: 0.15rem 0 0.35rem;
}

/* ================= Forms ================= */
.form {
    display: grid;
    gap: 1.1rem;
}

.form__row {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 580px) {
    .form__row { grid-template-columns: 1fr; }
}

.form__group {
    display: grid;
    gap: 0.35rem;
}

.form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
}

.form__input {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s var(--ease-dreamy), box-shadow 0.2s var(--ease-dreamy);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 22%, transparent);
}

textarea.form__input {
    min-height: 140px;
    resize: vertical;
}

.form__group.has-error .form__input { border-color: var(--color-error); }

.form__error {
    font-size: 0.82rem;
    color: var(--color-error);
    min-height: 1.1em;
}

.form__status {
    font-weight: 600;
    min-height: 1.4em;
}

.form__status.is-success { color: var(--color-success); }
.form__status.is-error { color: var(--color-error); }

/* ================= Newsletter ================= */
.newsletter {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    text-align: center;
}

.newsletter__form {
    display: flex;
    gap: 0.6rem;
    max-width: 460px;
    margin: 1.25rem auto 0;
}

.newsletter__form .form__input { flex: 1; }

@media (max-width: 520px) {
    .newsletter__form { flex-direction: column; }
}

/* ================= Footer ================= */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: clamp(2.5rem, 6vw, 4rem) 0 5.5rem; /* bottom space clears the Ventus badge */
    margin-top: clamp(3rem, 7vw, 5rem);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 800px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.site-footer a {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.site-footer a:hover { color: var(--color-primary); }

.site-footer__legal {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
}

/* ================= Blog ================= */
.post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card__body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.post-card__meta {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.post-card__title { margin: 0; font-size: 1.2rem; }

.post-card__title a { color: var(--color-heading); }

.post-card__excerpt { color: var(--color-text-muted); flex: 1; }

/* Blog post article */
.prose {
    max-width: 720px;
    margin-inline: auto;
}

.prose img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.prose blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-accent);
    background: var(--color-surface-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-heading);
}

.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }

/* ================= Theme switcher (demo tool) ================= */
.theme-switcher {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 90;
    font-family: var(--font-body);
}

.theme-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-float);
}

.theme-switcher__swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50% 0 50% 0;
    background: var(--gradient-brand);
}

.theme-switcher__menu {
    position: absolute;
    bottom: calc(100% + 0.6rem);
    left: 0;
    min-width: 190px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    padding: 0.4rem;
    display: none;
}

.theme-switcher.is-open .theme-switcher__menu { display: block; }

.theme-switcher__option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.theme-switcher__option:hover { background: var(--color-accent-soft); }

.theme-switcher__option.is-active {
    background: var(--color-accent-soft);
    color: var(--color-primary);
    font-weight: 700;
}

/* ================= Utilities ================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; }
}
