/* =============================================
   Wordigami Ghost Theme Styles
   ============================================= */

/* CSS Variables */
:root {
    --red: #E53935;
    --red-light: #FF6F61;
    --yellow: #FFB300;
    --yellow-light: #FFCA28;
    --blue: #1E88E5;
    --blue-dark: #1565C0;
    --teal: #26A69A;
    --teal-light: #4DB6AC;
    --sky: #64B5F6;
    --cream: #FFF8F0;
    --dark: #1A1A2E;
    --gray: #6B7280;
    --white: #FFFFFF;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

/* Material Icons */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =============================================
   Navigation
   ============================================= */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.nav-logo span {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark);
}

.nav-toggle .material-symbols-rounded {
    font-size: 28px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem 2rem 2rem;
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--gray);
    font-weight: 500;
}

.mobile-nav-links .btn {
    margin-top: 1rem;
    justify-content: center;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn .material-symbols-rounded {
    font-size: 20px;
}

.btn-primary {
    background: var(--dark);
    color: white;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: white;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow) 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 50%;
    background: linear-gradient(45deg, var(--teal-light) 0%, var(--teal) 100%);
    clip-path: polygon(0% 20%, 100% 0%, 80% 100%, 0% 100%);
    opacity: 0.3;
}

.origami-decoration {
    position: absolute;
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.origami-decoration .material-symbols-rounded {
    font-size: 120px;
}

.origami-1 {
    top: 15%;
    right: 8%;
    color: var(--red);
}

.origami-2 {
    bottom: 20%;
    left: 5%;
    color: var(--teal);
    animation-delay: -3s;
}

.origami-3 {
    top: 60%;
    right: 15%;
    color: var(--yellow);
    animation-delay: -1.5s;
}

.origami-3 .material-symbols-rounded {
    font-size: 80px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 50%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Wide Hero Visual - Browser Screenshot with Floating Cards */
.hero-visual-wide {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Browser Mockup */
.browser-mockup {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.3),
        0 30px 60px -30px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(2000px) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.browser-mockup:hover {
    transform: perspective(2000px) rotateX(0deg) scale(1.01);
    box-shadow: 
        0 60px 120px -20px rgba(0, 0, 0, 0.35),
        0 40px 80px -30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #2d2d44;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #28ca41;
}

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.browser-url .material-symbols-rounded {
    font-size: 14px;
    color: #28ca41;
}

.browser-content {
    line-height: 0;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Flashcards */
.floating-card {
    position: absolute;
    width: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: cardFloat 5s ease-in-out infinite;
    z-index: 10;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    animation-play-state: paused;
    transform: scale(1.05) translateY(-5px) !important;
}

.floating-card img {
    width: 100%;
    display: block;
}

/* Card 1: Blue card - Top left */
.floating-card-1 {
    top: -40px;
    left: -30px;
    width: 160px;
    animation-delay: 0s;
    transform: rotate(-6deg);
}

/* Card 2: Yellow card - Bottom right */
.floating-card-2 {
    bottom: 20px;
    right: -40px;
    width: 170px;
    animation-delay: -1.5s;
    transform: rotate(4deg);
}

/* Card 3: Green card - Top right */
.floating-card-3 {
    top: 60px;
    right: -60px;
    width: 150px;
    animation-delay: -3s;
    transform: rotate(8deg);
}

@keyframes cardFloat {
    0%, 100% { 
        transform: translateY(0) rotate(var(--rotation, -3deg)); 
    }
    50% { 
        transform: translateY(-12px) rotate(calc(var(--rotation, -3deg) + 2deg)); 
    }
}

.floating-card-1 { --rotation: -6deg; }
.floating-card-2 { --rotation: 4deg; }
.floating-card-3 { --rotation: 8deg; }

/* Legacy phone mockup (kept for backwards compatibility) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3);
    background: white;
    border: 8px solid #1a1a2e;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow) 100%);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-label .material-symbols-rounded {
    font-size: 18px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

/* =============================================
   Features Section
   ============================================= */
.features {
    padding: 8rem 2rem;
    position: relative;
    background: white;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--cream), white);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--cream);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.feature-card:nth-child(1)::before { background: var(--red); }
.feature-card:nth-child(2)::before { background: var(--yellow); }
.feature-card:nth-child(3)::before { background: var(--blue); }
.feature-card:nth-child(4)::before { background: var(--teal); }
.feature-card:nth-child(5)::before { background: var(--red-light); }
.feature-card:nth-child(6)::before { background: var(--sky); }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon .material-symbols-rounded {
    font-size: 32px;
}

.feature-card:nth-child(1) .feature-icon { 
    background: rgba(229, 57, 53, 0.1); 
    color: var(--red);
}
.feature-card:nth-child(2) .feature-icon { 
    background: rgba(255, 179, 0, 0.15); 
    color: var(--yellow);
}
.feature-card:nth-child(3) .feature-icon { 
    background: rgba(30, 136, 229, 0.1); 
    color: var(--blue);
}
.feature-card:nth-child(4) .feature-icon { 
    background: rgba(38, 166, 154, 0.1); 
    color: var(--teal);
}
.feature-card:nth-child(5) .feature-icon { 
    background: rgba(255, 111, 97, 0.1); 
    color: var(--red-light);
}
.feature-card:nth-child(6) .feature-icon { 
    background: rgba(100, 181, 246, 0.1); 
    color: var(--sky);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* =============================================
   How It Works Section
   ============================================= */
.how-it-works {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, white 0%, var(--cream) 100%);
    position: relative;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.step:nth-child(even) {
    direction: rtl;
}

.step:nth-child(even) > * {
    direction: ltr;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step:nth-child(1) .step-number { background: var(--red); }
.step:nth-child(2) .step-number { background: var(--yellow); color: var(--dark); }
.step:nth-child(3) .step-number { background: var(--teal); }

.step-content {
    position: relative;
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--gray);
    font-size: 1.1rem;
}

.step-image {
    display: flex;
    justify-content: center;
}

.step-image img {
    width: 280px;
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

/* =============================================
   Science Section
   ============================================= */
.science {
    padding: 8rem 2rem;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.science::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(229, 57, 53, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 179, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(38, 166, 154, 0.1) 0%, transparent 40%);
}

.science .section-header {
    position: relative;
    z-index: 1;
}

.science .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.science .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.science-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.science-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.science-card .card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.science-card:nth-child(1) .card-icon {
    background: rgba(229, 57, 53, 0.2);
    color: var(--red-light);
}

.science-card:nth-child(2) .card-icon {
    background: rgba(255, 179, 0, 0.2);
    color: var(--yellow);
}

.science-card:nth-child(3) .card-icon {
    background: rgba(38, 166, 154, 0.2);
    color: var(--teal-light);
}

.science-card .card-icon .material-symbols-rounded {
    font-size: 32px;
}

.science-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.science-card p {
    color: rgba(255, 255, 255, 0.7);
}

.science-quote {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.science-quote .quote-icon {
    color: var(--yellow);
    margin-bottom: 1rem;
}

.science-quote .quote-icon .material-symbols-rounded {
    font-size: 48px;
}

.science-quote blockquote {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.science-quote cite {
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
}

/* =============================================
   Pricing Section
   ============================================= */
.pricing {
    padding: 8rem 2rem;
    background: var(--cream);
}

.pricing-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--teal);
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.05) 0%, white 100%);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pricing-header .material-symbols-rounded {
    font-size: 28px;
}

.pricing-card:first-child .pricing-header .material-symbols-rounded {
    color: var(--gray);
}

.pricing-card.featured .pricing-header .material-symbols-rounded {
    color: var(--teal);
}

.pricing-card h3 {
    font-size: 1.5rem;
}

.pricing-card .price {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li .material-symbols-rounded {
    font-size: 20px;
    color: var(--teal);
}

.pricing-features li.disabled {
    opacity: 0.5;
}

.pricing-features li.disabled .material-symbols-rounded {
    color: var(--gray);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* =============================================
   CTA Section
   ============================================= */
.cta {
    padding: 8rem 2rem;
    background: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--yellow-light) 0%, transparent 70%);
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 50%, var(--teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cta-icon .material-symbols-rounded {
    font-size: 40px;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    padding: 3rem 2rem;
    background: var(--dark);
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-logo span {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-links a .material-symbols-rounded {
    font-size: 18px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* =============================================
   Ghost Koenig Editor Cards
   ============================================= */

/* Content width settings */
.post-content,
.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-content > *,
.page-content > * {
    width: 100%;
    max-width: 720px;
}

/* Wide width cards */
.post-content .kg-width-wide,
.page-content .kg-width-wide {
    max-width: 1040px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Full width cards */
.post-content .kg-width-full,
.page-content .kg-width-full {
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Image cards */
.kg-image-card {
    margin: 2rem 0;
}

.kg-image-card img {
    margin: 0;
}

.kg-image-card figcaption {
    text-align: center;
    padding: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Gallery cards */
.kg-gallery-card {
    margin: 2rem 0;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kg-gallery-row {
    display: flex;
    gap: 0.75rem;
}

.kg-gallery-row img {
    flex: 1;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* Bookmark cards */
.kg-bookmark-card {
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    flex: 1;
    padding: 1.5rem;
}

.kg-bookmark-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
}

.kg-bookmark-thumbnail {
    width: 180px;
    flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

/* Embed/Video cards */
.kg-embed-card {
    margin: 2rem 0;
}

.kg-embed-card iframe {
    width: 100%;
    border-radius: 12px;
}

/* Callout cards */
.kg-callout-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.kg-callout-card-grey {
    background: rgba(0, 0, 0, 0.05);
}

.kg-callout-card-white {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.kg-callout-card-blue {
    background: rgba(30, 136, 229, 0.1);
}

.kg-callout-card-green {
    background: rgba(38, 166, 154, 0.1);
}

.kg-callout-card-yellow {
    background: rgba(255, 179, 0, 0.1);
}

.kg-callout-card-red {
    background: rgba(229, 57, 53, 0.1);
}

.kg-callout-card-pink {
    background: rgba(255, 111, 97, 0.1);
}

.kg-callout-card-purple {
    background: rgba(156, 39, 176, 0.1);
}

.kg-callout-emoji {
    font-size: 1.5rem;
}

.kg-callout-text {
    flex: 1;
}

/* Button cards */
.kg-button-card {
    margin: 2rem 0;
    text-align: center;
}

.kg-button-card.kg-align-left {
    text-align: left;
}

.kg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    background: var(--dark);
    color: white;
    transition: all 0.3s ease;
}

.kg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.4);
}

.kg-btn-accent {
    background: var(--teal);
}

/* Toggle/Accordion cards */
.kg-toggle-card {
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
}

.kg-toggle-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.kg-toggle-card-icon {
    transition: transform 0.3s;
}

.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon {
    transform: rotate(180deg);
}

.kg-toggle-content {
    padding: 0 1.5rem 1.25rem;
}

/* Product cards */
.kg-product-card {
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
}

.kg-product-card-image img {
    width: 100%;
    margin: 0;
}

.kg-product-card-content {
    padding: 1.5rem;
}

.kg-product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kg-product-card-rating {
    color: var(--yellow);
    margin-bottom: 0.75rem;
}

.kg-product-card-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Audio cards */
.kg-audio-card {
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 12px;
    padding: 1.5rem;
}

/* File cards */
.kg-file-card {
    margin: 2rem 0;
}

.kg-file-card-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.kg-file-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: white;
    border-radius: 8px;
}

.kg-file-card-contents {
    flex: 1;
}

.kg-file-card-title {
    font-weight: 600;
}

.kg-file-card-metadata {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Header cards */
.kg-header-card {
    margin: 2rem 0;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 16px;
}

.kg-header-card h2 {
    margin-bottom: 1rem;
}

.kg-header-card-button {
    margin-top: 1.5rem;
}

/* Signup/Newsletter cards */
.kg-signup-card {
    margin: 2rem 0;
    padding: 3rem 2rem;
    background: var(--cream);
    border-radius: 16px;
    text-align: center;
}

/* =============================================
   Blog / Post Styles
   ============================================= */
.post-full,
.page-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.post-header,
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--yellow-light);
    color: var(--dark);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.post-title,
.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-feature-image,
.page-feature-image {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
}

.post-feature-image img,
.page-feature-image img {
    width: 100%;
    display: block;
}

.post-feature-image figcaption {
    text-align: center;
    padding: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.post-content,
.page-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2,
.page-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.post-content h3,
.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content p,
.page-content p {
    margin-bottom: 1.5rem;
}

.post-content a,
.page-content a {
    color: var(--teal);
    text-decoration: underline;
}

.post-content img,
.page-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--yellow);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
}

.post-content code,
.page-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre,
.page-content pre {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code,
.page-content pre code {
    background: none;
    padding: 0;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.post-tags .tag {
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--gray);
    transition: all 0.3s;
}

.post-tags .tag:hover {
    background: var(--yellow-light);
    color: var(--dark);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
}

.post-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    color: var(--gray);
    transition: all 0.3s;
}

.post-share a:hover {
    background: var(--dark);
    color: white;
}

/* Related Posts */
.related-posts {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Author Section */
.author-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.author-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--cream);
    border-radius: 16px;
}

.author-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card-content {
    flex: 1;
}

.author-card-name {
    margin-bottom: 0.5rem;
}

.author-card-name a {
    color: var(--dark);
    transition: color 0.3s;
}

.author-card-name a:hover {
    color: var(--teal);
}

.author-card-bio {
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.author-card-location {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.author-card-website {
    font-size: 0.875rem;
    color: var(--teal);
}

/* Page excerpt */
.page-excerpt {
    font-size: 1.25rem;
    color: var(--gray);
    margin-top: 1rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.related-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-post-content h3 a {
    color: var(--dark);
    transition: color 0.3s;
}

.related-post-content h3 a:hover {
    color: var(--teal);
}

.related-post-content time {
    font-size: 0.85rem;
    color: var(--gray);
}

/* =============================================
   Latest Posts Section (Homepage)
   ============================================= */
.latest-posts {
    padding: 8rem 2rem;
    background: white;
}

.latest-posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.latest-posts-cta {
    text-align: center;
    margin-top: 3rem;
}

/* =============================================
   Blog Listing Page
   ============================================= */
.blog-header {
    padding: 8rem 2rem 4rem;
    background: var(--cream);
}

.blog-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.blog-listing {
    padding: 2rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--yellow-light);
    color: var(--dark);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    transition: background 0.3s;
}

.blog-card-tag:hover {
    background: var(--yellow);
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--dark);
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--teal);
}

.blog-card-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--cream);
    color: var(--dark);
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--dark);
    color: white;
}

.pagination-info {
    color: var(--gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 968px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual-wide {
        max-width: 100%;
    }

    .browser-mockup {
        transform: none;
        border-radius: 12px;
    }

    .browser-mockup:hover {
        transform: none;
    }

    .browser-header {
        padding: 0.5rem 0.75rem;
    }

    .browser-dots span {
        width: 8px;
        height: 8px;
    }

    .browser-url {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    /* Position floating cards for tablet */
    .floating-card {
        width: 120px !important;
    }

    .floating-card-1 {
        top: -20px;
        left: -15px;
    }

    .floating-card-2 {
        bottom: 10px;
        right: -20px;
    }

    .floating-card-3 {
        top: 40px;
        right: -30px;
    }

    /* Legacy */
    .hero-visual {
        order: -1;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step:nth-child(even) {
        direction: ltr;
    }

    .science-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .origami-decoration {
        display: none;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Hero mobile adjustments */
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Hide floating cards on mobile */
    .floating-card {
        display: none;
    }

    .browser-mockup {
        border-radius: 8px;
    }

    .browser-header {
        padding: 0.4rem 0.5rem;
        gap: 0.5rem;
    }

    .browser-dots span {
        width: 6px;
        height: 6px;
    }

    .browser-url {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        max-width: 150px;
    }
}

/* =============================================
   Custom Page Sections (Magic Slug Pages)
   ============================================= */

/* Ghost content wrapper for custom sections */
.ghost-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ghost-content img {
    border-radius: 16px;
}

.ghost-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ghost-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.ghost-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Hero - Custom image container */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.2),
        0 30px 60px -30px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-custom-content {
    margin-bottom: 2rem;
}

.hero-custom-content h1,
.hero-custom-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-custom-content p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 500px;
}

/* Logos Section */
.logos-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}

.logos-section .section-header h2 {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 2rem;
}

.logos-content {
    max-width: 1000px;
    margin: 0 auto;
}

.logos-content .kg-gallery-row {
    align-items: center;
    justify-content: center;
}

.logos-content img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logos-content img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Reviews/Testimonials Section */
.reviews-section {
    padding: 8rem 2rem;
    background: var(--cream);
}

.reviews-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Style product cards as testimonials */
.reviews-content .kg-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 1rem 0;
}

.reviews-content .kg-product-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 1.5rem auto 0;
}

.reviews-content .kg-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-content .kg-product-card-content {
    text-align: center;
    padding: 1rem 2rem 2rem;
}

.reviews-content .kg-product-card-title {
    font-size: 1.1rem;
}

.reviews-content .kg-product-card-description {
    font-style: italic;
    line-height: 1.7;
}

/* Reviews grid layout with gallery */
.reviews-content .kg-gallery-container {
    gap: 1.5rem;
}

.reviews-content .kg-gallery-row {
    gap: 1.5rem;
}

/* How It Works - Custom visual */
.steps-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-visual {
    display: flex;
    justify-content: center;
}

.steps-visual img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.steps-custom-content {
    padding: 2rem 0;
}

@media (max-width: 968px) {
    .steps-wrapper {
        grid-template-columns: 1fr;
    }

    .steps-visual {
        order: -1;
    }
}

/* CTA Section - With background image */
.cta[style*="background-image"] {
    color: white;
}

.cta[style*="background-image"] .cta-content {
    max-width: 700px;
}

.cta[style*="background-image"] h2,
.cta[style*="background-image"] p {
    color: white;
}

.cta[style*="background-image"] p {
    opacity: 0.9;
}

.cta[style*="background-image"] .cta-icon {
    background: rgba(255, 255, 255, 0.2);
}

.cta-custom-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-custom-content p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* Features custom content */
.features-custom-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Science custom content */
.science-custom-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.science-custom-content h2,
.science-custom-content h3 {
    color: white;
}

.science-custom-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Pricing custom content */
.pricing-custom-content {
    max-width: 1000px;
    margin: 0 auto;
}
