/*
Theme Name: iWORKS Plugin Hub
Theme URI: https://plugin.iworksgt.com
Author: iWORKS GLOBAL
Author URI: https://iworksgt.com
Description: A branded landing theme for the iWORKS GLOBAL plugin hub.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iworks-plugin-hub
*/

:root {
    --hub-bg: #f8efe6;
    --hub-bg-strong: #ffe0c8;
    --hub-paper: #fffaf5;
    --hub-panel: rgba(255, 250, 245, 0.78);
    --hub-panel-strong: rgba(255, 250, 245, 0.94);
    --hub-ink: #17120d;
    --hub-muted: #695649;
    --hub-accent: #ff6600;
    --hub-accent-deep: #d94700;
    --hub-accent-soft: #ffb37a;
    --hub-border: rgba(23, 18, 13, 0.12);
    --hub-shadow: 0 20px 70px rgba(121, 54, 7, 0.14);
    --hub-shadow-strong: 0 28px 100px rgba(85, 31, 0, 0.2);
    --hub-radius-xl: 34px;
    --hub-radius-lg: 24px;
    --hub-radius-md: 18px;
    --hub-radius-sm: 12px;
    --hub-max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--hub-ink);
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 102, 0, 0.2), transparent 24%),
        radial-gradient(circle at 85% 22%, rgba(255, 173, 102, 0.42), transparent 26%),
        radial-gradient(circle at 72% 78%, rgba(255, 102, 0, 0.14), transparent 24%),
        linear-gradient(180deg, #fff7ef 0%, #f8efe6 52%, #fff8f1 100%);
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
}

body.page-template-default,
body.home,
body.blog {
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.hub-page {
    position: relative;
    overflow: hidden;
}

.hub-page::before,
.hub-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.35;
    pointer-events: none;
}

.hub-page::before {
    top: -90px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.26), rgba(255, 202, 160, 0.12));
}

.hub-page::after {
    bottom: 120px;
    left: -140px;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(255, 190, 140, 0.2), rgba(255, 102, 0, 0.18));
}

.hub-shell {
    width: min(var(--hub-max), calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hub-site-header {
    padding: 24px 0 8px;
}

.hub-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 250, 245, 0.66);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(99, 48, 6, 0.08);
}

.hub-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hub-brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ff6600, #ff8e3c);
    color: #fff;
    font: 800 18px/1 "Space Grotesk", sans-serif;
    box-shadow: 0 14px 34px rgba(255, 102, 0, 0.28);
}

.hub-brand-copy strong,
.hub-section-heading h2,
.hub-card-title,
.hub-stat strong,
.hub-control-card h3,
.hub-footer-mark {
    font-family: "Space Grotesk", sans-serif;
}

.hub-brand-copy strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.hub-brand-copy span {
    display: block;
    color: var(--hub-muted);
    font-size: 0.86rem;
}

.hub-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hub-nav a {
    padding: 10px 16px;
    color: rgba(23, 18, 13, 0.82);
    font-size: 0.95rem;
    border-radius: 999px;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.hub-nav a:hover,
.hub-nav a:focus {
    background: rgba(255, 102, 0, 0.12);
    color: var(--hub-ink);
    transform: translateY(-1px);
}

.hub-nav .hub-nav-cta {
    background: var(--hub-ink);
    color: #fff;
    box-shadow: 0 10px 30px rgba(23, 18, 13, 0.16);
}

.hub-nav .hub-nav-cta:hover,
.hub-nav .hub-nav-cta:focus {
    background: var(--hub-accent);
    color: #fff;
}

.hub-hero {
    padding: 26px 0 52px;
}

.hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.hub-hero-copy,
.hub-control-card,
.hub-product-card,
.hub-story-card,
.hub-step,
.hub-footer-bar {
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: var(--hub-panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--hub-shadow);
}

.hub-hero-copy {
    position: relative;
    padding: 36px;
    border-radius: var(--hub-radius-xl);
    overflow: hidden;
}

.hub-hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 48%),
        radial-gradient(circle at 78% 18%, rgba(255, 102, 0, 0.14), transparent 24%);
    pointer-events: none;
}

.hub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255, 102, 0, 0.1);
    color: var(--hub-accent-deep);
    font-weight: 800;
}

.hub-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hub-accent);
    box-shadow: 0 0 0 8px rgba(255, 102, 0, 0.12);
    animation: hub-pulse 2.8s ease-in-out infinite;
}

.hub-hero-title {
    margin: 20px 0 16px;
    font: 800 clamp(2.8rem, 6vw, 5.8rem) / 0.94 "Space Grotesk", sans-serif;
    letter-spacing: -0.055em;
    max-width: 10ch;
}

.hub-hero-title span {
    display: block;
    color: var(--hub-accent);
}

.hub-hero-copy p {
    position: relative;
    max-width: 62ch;
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(23, 18, 13, 0.8);
    margin: 0;
}

.hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hub-button:hover,
.hub-button:focus {
    transform: translateY(-2px);
}

.hub-button-primary {
    background: linear-gradient(135deg, var(--hub-accent), #ff8a36);
    color: #fff;
    box-shadow: 0 18px 38px rgba(255, 102, 0, 0.28);
}

.hub-button-secondary {
    background: rgba(23, 18, 13, 0.08);
    color: var(--hub-ink);
}

.hub-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.hub-stat {
    padding: 18px;
    border-radius: var(--hub-radius-md);
    background: var(--hub-panel-strong);
    border: 1px solid rgba(23, 18, 13, 0.08);
}

.hub-stat strong {
    display: block;
    font-size: 1.3rem;
    letter-spacing: -0.04em;
}

.hub-stat span {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--hub-muted);
}

.hub-control-card {
    position: relative;
    padding: 28px;
    border-radius: var(--hub-radius-xl);
    overflow: hidden;
}

.hub-control-card::before {
    content: "";
    position: absolute;
    inset: auto auto -60px 56%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.2), transparent 68%);
    pointer-events: none;
}

.hub-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(22, 120, 67, 0.12);
    color: #135c34;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hub-status-pill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #17a34a;
}

.hub-control-card h3 {
    margin: 20px 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.05em;
}

.hub-control-card p {
    color: rgba(23, 18, 13, 0.76);
    line-height: 1.75;
    margin: 0 0 18px;
}

.hub-mini-grid {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.hub-mini-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border-radius: var(--hub-radius-md);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 18, 13, 0.08);
}

.hub-mini-card strong {
    display: block;
    font-size: 0.95rem;
}

.hub-mini-card span {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--hub-muted);
}

.hub-mini-card code {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(23, 18, 13, 0.06);
}

.hub-section {
    padding: 18px 0 34px;
}

.hub-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.hub-section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

.hub-section-heading p {
    margin: 0;
    max-width: 52ch;
    line-height: 1.75;
    color: var(--hub-muted);
}

.hub-product-card {
    position: relative;
    border-radius: var(--hub-radius-xl);
    padding: 30px;
    overflow: hidden;
}

.hub-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.16), transparent 72%);
    pointer-events: none;
}

.hub-product-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.hub-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c2a00;
    background: rgba(255, 102, 0, 0.12);
}

.hub-card-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.05em;
}

.hub-product-subtitle {
    margin: 16px 0 0;
    max-width: 60ch;
    color: rgba(23, 18, 13, 0.8);
    line-height: 1.8;
}

.hub-version-badge {
    padding: 14px 16px;
    border-radius: var(--hub-radius-md);
    text-align: right;
    min-width: 150px;
    background: #16120d;
    color: #fff;
}

.hub-version-badge strong {
    display: block;
    font: 800 1.6rem/1 "Space Grotesk", sans-serif;
    letter-spacing: -0.05em;
}

.hub-version-badge span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.hub-product-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 28px;
}

.hub-feature-list,
.hub-story-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hub-feature-list li,
.hub-story-list li {
    padding: 18px;
    border-radius: var(--hub-radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 18, 13, 0.08);
}

.hub-feature-list strong,
.hub-story-list strong {
    display: block;
    font-size: 0.98rem;
}

.hub-feature-list span,
.hub-story-list span {
    display: block;
    margin-top: 8px;
    color: var(--hub-muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

.hub-story-card {
    padding: 22px;
    border-radius: var(--hub-radius-xl);
}

.hub-story-card h3 {
    margin: 0 0 16px;
    font: 800 1.55rem/1.05 "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
}

.hub-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hub-step {
    padding: 22px;
    border-radius: var(--hub-radius-lg);
    position: relative;
}

.hub-step::before {
    content: attr(data-step);
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 14px;
    font: 800 1rem/1 "Space Grotesk", sans-serif;
    color: #fff;
    background: linear-gradient(135deg, var(--hub-accent), #ff9346);
    box-shadow: 0 14px 30px rgba(255, 102, 0, 0.22);
}

.hub-step h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
}

.hub-step p {
    margin: 0;
    color: var(--hub-muted);
    line-height: 1.72;
    font-size: 0.95rem;
}

.hub-engine-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
}

.hub-story-panel,
.hub-engine-panel {
    padding: 26px;
    border-radius: var(--hub-radius-xl);
    background: rgba(255, 250, 245, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--hub-shadow);
}

.hub-engine-panel {
    background:
        linear-gradient(145deg, rgba(23, 18, 13, 0.95), rgba(49, 28, 14, 0.98));
    color: #fff;
    box-shadow: var(--hub-shadow-strong);
}

.hub-story-panel h3,
.hub-engine-panel h3 {
    margin: 0 0 14px;
    font: 800 1.8rem/1.04 "Space Grotesk", sans-serif;
    letter-spacing: -0.045em;
}

.hub-story-panel p,
.hub-engine-panel p {
    margin: 0 0 18px;
    line-height: 1.75;
}

.hub-story-panel p {
    color: var(--hub-muted);
}

.hub-engine-panel p {
    color: rgba(255, 255, 255, 0.76);
}

.hub-story-list,
.hub-control-list {
    display: grid;
    gap: 14px;
}

.hub-control-list li {
    list-style: none;
    padding: 16px 18px;
    border-radius: var(--hub-radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-control-list strong {
    display: block;
}

.hub-control-list span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.hub-footer {
    padding: 26px 0 44px;
}

.hub-footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 24px 26px;
    border-radius: var(--hub-radius-xl);
}

.hub-footer-mark {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.hub-footer-copy {
    color: var(--hub-muted);
    line-height: 1.7;
    font-size: 0.94rem;
}

.hub-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hub-footer-links a {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(23, 18, 13, 0.08);
    transition: transform 180ms ease, background-color 180ms ease;
}

.hub-footer-links a:hover,
.hub-footer-links a:focus {
    transform: translateY(-2px);
    background: rgba(255, 102, 0, 0.12);
}

.hub-reveal {
    animation: hub-reveal-up 700ms ease both;
}

.hub-delay-1 {
    animation-delay: 90ms;
}

.hub-delay-2 {
    animation-delay: 180ms;
}

.hub-delay-3 {
    animation-delay: 270ms;
}

@keyframes hub-reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hub-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 102, 0, 0.12);
    }

    50% {
        transform: scale(1.16);
        box-shadow: 0 0 0 14px rgba(255, 102, 0, 0.05);
    }
}

@media (max-width: 1080px) {
    .hub-hero-grid,
    .hub-product-grid,
    .hub-engine-grid,
    .hub-step-grid {
        grid-template-columns: 1fr;
    }

    .hub-hero-title {
        max-width: 12ch;
    }
}

@media (max-width: 820px) {
    .hub-header-bar,
    .hub-section-heading,
    .hub-footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-nav {
        justify-content: flex-start;
    }

    .hub-product-top {
        flex-direction: column;
    }

    .hub-version-badge {
        text-align: left;
    }

    .hub-feature-list,
    .hub-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hub-shell {
        width: min(var(--hub-max), calc(100% - 20px));
    }

    .hub-hero-copy,
    .hub-control-card,
    .hub-product-card,
    .hub-story-panel,
    .hub-engine-panel,
    .hub-footer-bar {
        padding: 22px;
    }

    .hub-site-header {
        padding-top: 16px;
    }

    .hub-header-bar {
        border-radius: 26px;
        padding: 16px;
    }

    .hub-hero-title {
        font-size: clamp(2.4rem, 11vw, 3.7rem);
    }
}
