/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #040d08;
    --color-bg-alt: #081a10;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #00ff66;
    --color-secondary: #00cc55;
    --color-accent: #33ff88;
    --color-danger: #ef4444;
    --color-success: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    --gradient-text: linear-gradient(to right, #4ade80, #00ff66);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-danger {
    color: #fca5a5;
}

.text-success {
    color: #6ee7b7;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__subtitle {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn--small {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn--large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 102, 0.4);
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
    background: rgba(0, 255, 102, 0.1);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.is-scrolled {
    background: rgba(4, 13, 8, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header__logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__list {
    display: flex;
    gap: 1.5rem;
}

.header__list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.header__list a:hover {
    color: #fff;
}

.header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: url('../images/ai_hero_bg.png') center/cover no-repeat;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 13, 8, 0.6) 0%, rgba(4, 13, 8, 1) 100%);
    z-index: 0;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: drift 20s infinite alternate;
    z-index: 1;
}

.hero__orb--1 {
    width: 40vw;
    height: 40vw;
    background: rgba(0, 255, 102, 0.15);
    /* primary */
    top: -10%;
    left: -10%;
}

.hero__orb--2 {
    width: 35vw;
    height: 35vw;
    background: rgba(0, 204, 85, 0.15);
    /* secondary */
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.hero__orb--3 {
    width: 25vw;
    height: 25vw;
    background: rgba(51, 255, 136, 0.15);
    /* accent */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero__copy {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about__card p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about__card strong {
    color: #fff;
    font-weight: 700;
}

/* ==========================================================================
   Reasons Section
   ========================================================================== */
.reasons__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reason-card {
    position: relative;
    overflow: hidden;
}

.reason-card__num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -1rem;
    right: 1rem;
    line-height: 1;
}

.reason-card__title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ==========================================================================
   Background Section
   ========================================================================== */
.background__lead {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.bento-item {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.bento-item:nth-child(1),
.bento-item:nth-child(2),
.bento-item:nth-child(3) {
    grid-column: span 1;
}

.bento-item--featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.05), rgba(0, 0, 0, 0.2));
    border-color: rgba(0, 255, 102, 0.3);
    text-align: center;
}

.bento-item__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.bento-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.bento-item strong {
    color: #fff;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.bento-item:nth-child(1)::before {
    background: rgba(255, 255, 255, 0.08);
}

.bento-item--alert::before {
    background: rgba(239, 68, 68, 0.2);
}

.bento-item--success::before {
    background: rgba(16, 185, 129, 0.2);
}

.bento-item--featured::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 102, 0.15);
}

.bento-item--featured .bento-item__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bento-item--featured .bento-item__content {
    max-width: 800px;
    margin: 0 auto;
}

.bento-item--featured .bento-item__highlight {
    font-size: 1.25rem;
    margin: 1.5rem 0;
}

/* Header Layout */
.bento-item__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.bento-item__header .bento-icon {
    margin-bottom: 0;
}

.bento-item__header .bento-item__title {
    margin-bottom: 0;
}

/* Icon Styles */
.bento-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-icon svg {
    width: 2rem;
    height: 2rem;
}

.bento-icon--trend {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.bento-icon--risk {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.2);
}

.bento-icon--solution {
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Featured Card Layout for Image */
.bento-item--featured {
    text-align: left;
    padding: 3rem;
}

.bento-item__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.bento-item__text {
    flex: 1;
}

.bento-item__image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bento-item__image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.2);
    border: 1px solid rgba(0, 255, 102, 0.2);
    transform: scale(1.05);
    transition: var(--transition);
}

.bento-item:hover .bento-item__image img {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 255, 102, 0.3);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item:nth-child(3) {
        grid-column: 1 / -1;
    }

    .bento-item__inner {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item:nth-child(1),
    .bento-item:nth-child(2),
    .bento-item:nth-child(3),
    .bento-item--featured {
        grid-column: 1 / -1;
    }

    .bento-item--featured {
        padding: 2rem;
    }
}

/* ==========================================================================
   Plans Section
   ========================================================================== */
.plans__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    display: flex;
    flex-direction: column;
}

.plan-card--featured {
    border-color: var(--color-primary);
    background: rgba(0, 255, 102, 0.05);
    transform: scale(1.02);
}

.plan-card--featured:hover {
    transform: scale(1.05);
}

.plan-card__badge {
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.plan-card__title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.plan-card__desc {
    border-top: solid 1px #333;
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 600;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.plan-card__features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.plan-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.price span {
    font-size: 1rem;
}

.note {
    font-size: 0.8rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    padding: 0;
    overflow: hidden;
}

.faq__q {
    padding: 1.5rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq__q::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq__item[open] .faq__q::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq__a {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact__inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact__lead {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: var(--color-danger);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.form__input,
.form__textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.form__textarea {
    resize: vertical;
}

.form__submit {
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================================
   Page Header (Privacy Policy etc)
   ========================================================================== */
.page-header {
    position: relative;
    padding: 12rem 0 6rem;
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.page-header__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-header__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.privacy__content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy__content h3 {
    font-size: 1.25rem;
    color: #fff;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.privacy__content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.privacy__content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.privacy__content li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.privacy__contact {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.privacy__date {
    margin-top: 3rem;
    text-align: right;
    font-size: 0.875rem;
}

/* Utilities */
.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer__desc {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.footer__address {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer__links a:hover {
    color: #fff;
}

.footer__copyright {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .hero {
        padding-top: 10rem;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .header__hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .header__hamburger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        left: 0;
        transition: var(--transition);
    }

    .header__hamburger span:nth-child(1) {
        top: 0;
    }

    .header__hamburger span:nth-child(2) {
        top: 9px;
    }

    .header__hamburger span:nth-child(3) {
        bottom: 0;
    }

    .header__hamburger.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .header__hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .header__hamburger.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(4, 13, 8, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 150;
    }

    .header__nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .header__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .header__list a {
        font-size: 1.25rem;
    }

    .plan-card--featured {
        transform: scale(1);
    }

    .plan-card--featured:hover {
        transform: translateY(-5px);
    }
}