/*
Theme Name: CloudMeta
Theme URI: https://cloudmeta.net
Author: CLOUDMETA.NET
Author URI: https://cloudmeta.net
Description: CLOUDMETA.NET marketing site - child theme of Inkbridge
Template: inkbridge-theme
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cloudmeta
*/

/* ===== GLOBAL MOBILE SAFETY RESETS ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* ===== CLOUDMETA.NET Marketing Site Styles ===== */

/* Hero Section */
.cm-hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.cm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    width: 100%;
    padding: 80px 64px;
}
.cm-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.cm-hero-label span {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: #2563EB;
}
.cm-hero-label em {
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #2563EB;
}
.cm-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}
.cm-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin: 0 0 32px 0;
}
/* Hide <br> in hero paragraph on mobile to prevent overflow */
.cm-hero p br {
    display: none;
}
.cm-btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.cm-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #FFFFFF;
    color: #0A0A0A !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}
.cm-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}
.cm-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.2s, transform 0.2s;
}
.cm-btn-outline:hover {
    border-color: #FFFFFF;
    transform: translateY(-1px);
}

/* Nav Bar */
.cm-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    background: rgba(0,0,0,0.5);
}
.cm-nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.cm-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.cm-nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.cm-nav-links a:hover {
    color: #FFFFFF !important;
}
.cm-nav-cta {
    padding: 10px 24px !important;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    color: #FFFFFF !important;
}
.cm-nav-cta:hover {
    border-color: #FFFFFF;
}

/* Section Shared */
.cm-section {
    padding: 100px 64px;
    width: 100%;
    max-width: 100%;
}
.cm-section-header {
    text-align: center;
    margin-bottom: 64px;
}
.cm-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}
.cm-section-label span {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: #2563EB;
}
.cm-section-label em {
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #2563EB;
}
.cm-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -1px;
    color: #0A0A0A;
    margin: 0 0 16px 0 !important;
}
.cm-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Features Grid */
.cm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1312px;
    width: 100%;
    margin: 0 auto;
}
.cm-feature-card {
    background: #F8F8F6;
    border: 1px solid #E8E8E5;
    border-radius: 8px;
    padding: 32px;
    min-width: 0;
}
.cm-feature-card svg {
    margin-bottom: 16px;
}
.cm-feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0 0 16px 0 !important;
}
.cm-feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* How It Works - Dark */
.cm-how {
    background: #0F172A;
    padding: 80px 64px;
    width: 100%;
    max-width: 100%;
}
.cm-how .cm-section-label span {
    background: #DFF140;
}
.cm-how .cm-section-label em {
    color: #DFF140;
}
.cm-how .cm-section-title {
    color: #FFFFFF;
}
.cm-steps {
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: 1312px;
    width: 100%;
    margin: 0 auto;
}
.cm-step {
    flex: 1;
    min-width: 0;
    background: #1A1A1A;
    border-radius: 8px;
    padding: 32px;
}
.cm-step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    margin: 0 0 16px 0 !important;
    line-height: 1;
}
.cm-step:nth-child(1) .cm-step-num { color: #2563EB; }
.cm-step:nth-child(3) .cm-step-num { color: #10B981; }
.cm-step:nth-child(5) .cm-step-num { color: #DFF140; }
.cm-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px 0 !important;
}
.cm-step p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0;
}
.cm-step-arrow {
    font-size: 24px;
    color: #64748B;
    padding: 0 8px;
    flex-shrink: 0;
}

/* Migration Section */
.cm-migration {
    display: flex;
    background: #F8F8F6;
    min-height: 520px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.cm-migration-content {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cm-migration-content .cm-section-label {
    justify-content: flex-start;
}
.cm-migration-content .cm-section-title {
    text-align: left;
    line-height: 1.1;
}
.cm-migration-content > p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 32px 0;
}
.cm-migration-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    min-width: 0;
}
.cm-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cm-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0A0A0A;
}
.cm-checklist svg {
    flex-shrink: 0;
    color: #10B981;
}

/* Pricing */
.cm-pricing {
    padding: 100px 64px;
    background: #FFFFFF;
    width: 100%;
    max-width: 100%;
}
.cm-price-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    padding: 48px;
}
.cm-price-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #999999;
    margin: 0 0 8px 0 !important;
    text-transform: uppercase;
}
.cm-price-amount {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}
.cm-price-amount strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #0A0A0A;
    line-height: 1;
}
.cm-price-amount span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #999999;
    padding-bottom: 8px;
}
.cm-price-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 32px 0;
}
.cm-price-divider {
    height: 1px;
    background: #E8E8E5;
    margin: 0 0 32px 0;
    border: none;
}
.cm-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cm-price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0A0A0A;
}
.cm-price-features svg {
    flex-shrink: 0;
    color: #10B981;
}
.cm-btn-dark {
    display: block;
    text-align: center;
    padding: 16px 0;
    background: #0A0A0A;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.2s;
}
.cm-btn-dark:hover {
    background: #222222;
}

/* CTA Section */
.cm-cta {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.cm-cta-content {
    background: rgba(0,0,0,0.67);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.cm-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 !important;
}
.cm-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #94A3B8;
    margin: 0;
}
.cm-btn-white {
    display: inline-block;
    padding: 14px 40px;
    background: #FFFFFF;
    color: #0A0A0A !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}
.cm-btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Footer */
.cm-footer {
    background: #F8F8F6;
    padding: 64px 64px 32px 64px;
    width: 100%;
    max-width: 100%;
}
.cm-footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}
.cm-footer-brand {
    max-width: 320px;
    min-width: 200px;
}
.cm-footer-brand h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0A0A0A;
    margin: 0 0 12px 0 !important;
}
.cm-footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999999;
    line-height: 1.6;
    margin: 0;
}
.cm-footer-col h5 {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #999999;
    margin: 0 0 12px 0 !important;
    text-transform: uppercase;
}
.cm-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cm-footer-col a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #555555 !important;
    text-decoration: none !important;
}
.cm-footer-col a:hover {
    color: #0A0A0A !important;
}
.cm-footer-divider {
    height: 1px;
    background: #E8E8E5;
    border: none;
    margin: 0 0 32px 0;
}
.cm-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.cm-footer-bottom span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #999999;
}

/* ===== RESPONSIVE ===== */

/* Tablet: <=1024px */
@media (max-width: 1024px) {
    .cm-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cm-steps {
        flex-direction: column;
        gap: 16px;
    }
    .cm-step {
        width: 100%;
        max-width: 100%;
    }
    .cm-step-arrow {
        transform: rotate(90deg);
    }
    .cm-migration {
        flex-direction: column;
    }
    .cm-migration-content {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .cm-migration-image {
        min-height: 300px;
        width: 100%;
        max-width: 100%;
        flex: none;
    }
}

/* Mobile: <=768px */
@media (max-width: 768px) {
    .cm-hero {
        min-height: 100vh;
        align-items: flex-end;
    }
    .cm-hero-content {
        padding: 60px 24px 48px 24px;
        max-width: 100%;
    }
    .cm-hero h1 {
        letter-spacing: -1px;
    }
    .cm-nav {
        padding: 16px 24px;
    }
    .cm-nav-links {
        gap: 16px;
    }
    .cm-nav-links a:not(.cm-nav-cta) {
        display: none;
    }
    .cm-section {
        padding: 60px 24px;
    }
    .cm-how {
        padding: 60px 24px;
    }
    .cm-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cm-footer {
        padding: 48px 24px 24px 24px;
    }
    .cm-footer-top {
        flex-direction: column;
        gap: 32px;
    }
    .cm-footer-brand {
        max-width: 100%;
    }
    .cm-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .cm-migration-content {
        padding: 48px 24px;
    }
    .cm-pricing {
        padding: 60px 24px;
    }
    .cm-price-card {
        padding: 32px 24px;
    }
    .cm-cta-content {
        padding: 32px 24px;
    }
    .cm-section-header {
        margin-bottom: 40px;
    }
}

/* Small mobile: <=480px */
@media (max-width: 480px) {
    .cm-hero p br {
        display: inline;
    }
    .cm-hero-content {
        padding: 48px 20px 40px 20px;
    }
    .cm-nav {
        padding: 14px 20px;
    }
    .cm-nav-brand {
        font-size: 13px;
        letter-spacing: 2px;
    }
    .cm-section {
        padding: 48px 20px;
    }
    .cm-how {
        padding: 48px 20px;
    }
    .cm-step {
        padding: 24px 20px;
    }
    .cm-step-num {
        font-size: 36px;
    }
    .cm-feature-card {
        padding: 24px 20px;
    }
    .cm-migration-content {
        padding: 40px 20px;
    }
    .cm-pricing {
        padding: 48px 20px;
    }
    .cm-price-card {
        padding: 28px 20px;
    }
    .cm-price-amount strong {
        font-size: 44px;
    }
    .cm-cta-content {
        padding: 28px 20px;
    }
    .cm-footer {
        padding: 40px 20px 20px 20px;
    }
    .cm-btn-row {
        flex-direction: column;
        gap: 12px;
    }
    .cm-btn-primary,
    .cm-btn-outline {
        text-align: center;
        width: 100%;
    }
}
