/* Perusrunko */

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
    color: #e5e7eb;
}

html,
body {
    overflow-x: hidden;
}

a {
    color: #a5b4fc;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

/* Layout */

.ta-main {
    padding-top: 40px;
}

.ta-main__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Header & nav */

.ta-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(2,6,23,0.97), rgba(2,6,23,0.85), transparent);
    border-bottom: 1px solid rgba(148,163,184,0.25);
}

.ta-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ta-header__branding {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ta-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #f9fafb;
}

.ta-logo__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22d3ee, #4f46e5);
    box-shadow: 0 0 16px rgba(56,189,248,0.8);
}

.ta-logo__text {
    font-size: 1.5rem;
}

.ta-header__tagline {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Nav */

.ta-nav {
    display: flex;
}

.ta-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    align-items: left;
}



.ta-nav__list > li > a {
    font-size: 1rem;
    color: #e5e7eb;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    font-weight: bold;
    text-transform: uppercase;
}

.ta-nav__list > li.current-menu-item > a,
.ta-nav__list > li > a:hover {
    border-bottom-color: #4f46e5;
}

/* Mobile nav toggle */

.ta-nav-toggle {
    all: unset;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 999px;
    position: relative;
    display: none;
}

.ta-nav-toggle__bar {
    position: relative;
    width: 18px;
    height: 2px;
    display: block;
    background: #e5e7eb;
    border-radius: 2px;
    transition: 0.25s ease;
}


.ta-nav-toggle__bar {
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.ta-nav-toggle--open .ta-nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.ta-nav-toggle--open .ta-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}

.ta-nav-toggle--open .ta-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.ta-hero {
    max-width: 1120px;
    margin: 1.25rem auto 2.5rem;
    padding: 2.5rem 1rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    position: relative;
}

.ta-hero__content {
    position: relative;
    z-index: 1;
}

.ta-hero__title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}

.ta-hero__subtitle {
    font-size: 0.95rem;
    max-width: 36rem;
    color: #e5e7eb;
    margin: 0 0 1.5rem;
}

.ta-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ta-hero__orb {
    position: relative;
    width: 100%;
    height: 300px; /* tee tästä haluttu korkeus */
    border-radius: 999px;

    overflow: hidden; /* estää kuvan karkaamisen ulos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:-40px;
}

.ta-hero__orb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.55;
}


.ta-hero__orb img {
    max-width: 140%;
    max-height: 140%;
    object-fit: contain; /* ei leikkaa mitään */
    display: block;
    margin-top: 40px;
}
.ta-hero__orb img {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}


/* Buttons */

.ta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(31, 41, 55, 1);
    cursor: pointer;
    text-decoration: none;
}

.ta-btn--primary {
    background: linear-gradient(135deg, #4f46e5, #22d3ee);
    color: #0b1020;
}

.ta-btn--primary:hover {
    filter: brightness(1.05);
}

.ta-btn--ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148,163,184,0.6);
}

.ta-btn--ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: #4f46e5;
}


/* Sections */

.ta-section {
    margin-bottom: 3rem;
}

.ta-section--alt {
    background: rgba(15,23,42,0.8);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
}

.ta-section__header {
    margin-bottom: 1.25rem;
}

.ta-section__title {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
}

.ta-section__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Posts grid */

.ta-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.ta-post-card {
    background: #020617;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(31,41,55,1);
    display: flex;
    flex-direction: column;
}

.ta-post-card--compact {
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
}

.ta-post-card__thumb img,
.ta-post-card__placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ta-post-card__placeholder {
    background: radial-gradient(circle at 30% 20%, rgba(79,70,229,0.7), rgba(15,23,42,1));
}

.ta-post-card__body {
    padding: 0.9rem 1rem 1rem;
}

.ta-post-card__title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.ta-post-card__title a {
    color: #e5e7eb;
}

.ta-post-card__meta {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ta-post-card__excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Article */

.ta-section--single {
    max-width: 760px;
    margin: 1.5rem auto 3rem;
}

.ta-article {
    background: rgba(15,23,42,0.9);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(31,41,55,1);
}

.ta-article__header {
    margin-bottom: 1.2rem;
}

.ta-article__title {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.ta-article__meta {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.ta-article__thumb {
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
}

.ta-article__content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.ta-article__content p {
    margin-bottom: 1rem;
}

/* TOOL PAGE – NEW DESIGN */

.ta-tool-full {
    max-width: 880px;
    margin: 0 auto;
}

/* HEADER CARD */
.ta-tool-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    margin-bottom: 2rem;
}

.ta-tool-header-logo img {
    width: 84px;
    height: 84px;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.ta-tool-header-title {
    margin: 0;
    font-size: 2rem;
}

.ta-tool-header-summary {
    font-size: 1rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
}

.ta-tool-header-score {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fbbf24;
}

.ta-tool-header-score small {
    display: block;
    margin-top: -0.2rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* GRID LAYOUT */
.ta-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ta-tool-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CARDS */
.ta-tool-box {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 1rem;
    padding: 1.4rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.ta-tool-box h2 {
    margin-top: 0;
}

/* Features */
.ta-tool-features {
    padding-left: 1.2rem;
}

/* Scores */
.ta-tool-scores li {
    margin-bottom: 0.4rem;
}

/* Savings highlight */
.ta-tool-savings {
    color: #22d3ee;
    font-weight: 500;
}

/* Description */
.ta-tool-description p {
    color: #e2e8f0;
    line-height: 1.7;
}

/* MOBILE */
@media (max-width: 768px) {
    .ta-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */

.ta-footer {
    border-top: 1px solid rgba(30,64,175,0.4);
    background: #020617;
}

.ta-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Pagination */

.ta-pagination {
    margin-top: 1.5rem;
}

.ta-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.3rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: #020617;
    border: 1px solid rgba(55,65,81,1);
    font-size: 0.85rem;
}

.ta-pagination .page-numbers.current {
    background: linear-gradient(135deg, #4f46e5, #22d3ee);
    color: #020617;
    border-color: transparent;
}

/* AI TOOL SINGLE PAGE */

.ta-tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ta-tool-logo {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.ta-tool-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.ta-tool-summary {
    color: #cbd5e1;
    font-size: 1rem;
    max-width: 600px;
    margin: 0.5rem auto 1rem;
}

.ta-tool-score-total {
    margin-top: 1rem;
}

.ta-tool-score-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fbbf24;
}

.ta-tool-box {
    background: rgba(15, 23, 42, 0.7);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(30, 41, 59, 1);
}

.ta-tool-box h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.ta-tool-features {
    padding-left: 1rem;
    color: #d1d5db;
}

.ta-tool-scores li {
    margin-bottom: 0.4rem;
}

.ta-tool-savings {
    color: #22d3ee;
    font-weight: 500;
}



/* RESPONSIVE */

@media (max-width: 768px) {
    .ta-header__inner {
        align-items: center;
    }
.ta-nav-toggle{
    display: inline-block;
}

    .ta-nav__list {
        flex-direction: column;
        padding: 0.75rem 1rem 0.9rem;
        
    }

    .ta-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .ta-hero__orb {
        height: 180px;
        margin-top: 0.5rem;
    }

    .ta-footer__inner {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {

    /* Mobile menu trigger näkyviin */
    .ta-nav-toggle {
        display: inline-block;
        z-index: 9999; /* jää overlayn päälle */
    }

    /* FULLSCREEN SLIDE-IN NAV */
    .ta-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 100%; /* halutessa 320-380px sidebar-tyyliin */
        background: rgba(2, 6, 23, 0.96);
        backdrop-filter: blur(20px);
        padding: 4.5rem 2rem 2rem;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.2s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 9998;
    }

    .ta-nav--open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Menu items isossa overlay-menussa */
    .ta-nav__list {
        flex-direction: column;
        gap: 1.2rem;
    }

    .ta-nav__list > li > a {
        font-size: 1.4rem;
        font-weight: 600;
        text-transform: none;
        padding: 0.25rem 0;
        border: none !important;
    }
.ta-nav-toggle__bar {
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.ta-nav-toggle__bar+.ta-nav-toggle__bar {
    margin-top: 4px;
}

.ta-nav-toggle--open .ta-nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.ta-nav-toggle--open .ta-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}

.ta-nav-toggle--open .ta-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
}


