/* ===== AMURA CLOUD — Standalone Product Page ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050508;
    --accent: #00a78a;
    --accent-dark: #0c7762;
    --accent-light: #0fcea9;
    --accent-glow: rgba(0,167,138,0.15);
    --text: #F2F2F2;
    --text-dim: #7B8CA8;
    --surface: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
    --bg: #F5F5F7;
    --text: #1A1A2E;
    --text-dim: #64748B;
    --surface: rgba(0,0,0,0.03);
    --border: rgba(0,0,0,0.06);
    --accent-glow: rgba(0,167,138,0.10);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== TOPBAR ===== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    height: 56px;
    display: flex; align-items: center;
    padding: 0 32px;
    background: var(--theme-nav-bg, rgba(5,5,8,0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}
.topbar-inner {
    width: 100%; max-width: 1200px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.topbar-logo img { height: 30px; width: auto; }
.topbar-back {
    font-size: 13px; font-weight: 500;
    color: var(--text-dim);
    display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
}
.topbar-back:hover { color: var(--text); }
.topbar-back svg { width: 16px; height: 16px; }
.topbar-actions {
    display: flex; align-items: center; gap: 12px;
}
.topbar-cta {
    padding: 7px 18px; font-size: 13px; font-weight: 600;
    color: #fff; background: var(--accent);
    border-radius: 7px;
    transition: background 0.2s, box-shadow 0.2s;
}
.topbar-cta:hover {
    background: var(--accent-dark);
    box-shadow: 0 0 24px var(--accent-glow);
}

/* ===== HERO — CINEMATIC ===== */
.cloud-hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Animated grid background */
.cloud-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,167,138,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,167,138,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 70%);
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* Central orb glow */
.cloud-hero-orb {
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(0,167,138,0.12) 0%,
        rgba(15,206,169,0.06) 30%,
        rgba(12,119,98,0.03) 50%,
        transparent 70%);
    animation: orb-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

/* Floating particles */
.cloud-hero-particles {
    position: absolute; inset: 0;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 8s ease-in-out infinite;
}
.particle:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 50%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 0.8s; animation-duration: 8s; }
.particle:nth-child(5) { left: 85%; animation-delay: 2.2s; animation-duration: 10s; }
.particle:nth-child(6) { left: 40%; animation-delay: 4s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 60%; animation-delay: 1s; animation-duration: 9.5s; }
.particle:nth-child(8) { left: 22%; animation-delay: 3.5s; animation-duration: 6.5s; }

@keyframes float-up {
    0% { bottom: -10px; opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.3; }
    100% { bottom: 110%; opacity: 0; }
}

.cloud-hero-content {
    position: relative; z-index: 1;
    max-width: 800px; padding: 0 24px;
}

.cloud-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 7px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(0,167,138,0.06);
    border: 1px solid rgba(0,167,138,0.12);
    border-radius: 100px;
    margin-bottom: 32px;
}

.cloud-hero-tag-icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    border-radius: 50%;
}
.cloud-hero-tag-icon svg { width: 12px; height: 12px; color: #fff; }

.cloud-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.cloud-hero h1 .glow-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloud-hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 44px;
}

.cloud-hero-ctas {
    display: flex; flex-wrap: wrap;
    gap: 14px; justify-content: center;
}

.btn-cloud {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    color: #fff; background: var(--accent);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative; overflow: hidden;
}
.btn-cloud::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-cloud:hover::before { transform: translateX(100%); }
.btn-cloud:hover {
    box-shadow: 0 0 40px rgba(0,167,138,0.4), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-cloud-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}
.btn-cloud-outline:hover {
    border-color: rgba(0,167,138,0.3);
    background: rgba(0,167,138,0.05);
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    color: var(--text-dim);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce-down 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS RIBBON ===== */
.stats-ribbon {
    position: relative;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0,167,138,0.02), transparent);
}
.stats-ribbon-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em; line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 14px; font-weight: 500;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .stats-ribbon-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== FEATURE SECTIONS — Alternating ===== */
.feature-section {
    padding: 120px 0;
    position: relative;
}

.feature-section + .feature-section {
    border-top: 1px solid var(--border);
}

.feature-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content { max-width: 520px; }
.feature-tag {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.feature-desc {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 14px;
}
.feature-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px; color: var(--text-dim); line-height: 1.5;
}
.feature-list-icon {
    width: 22px; height: 22px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,167,138,0.1);
    border-radius: 6px;
    color: var(--accent);
    margin-top: 1px;
}
.feature-list-icon svg { width: 13px; height: 13px; }

/* Feature visual — abstract diagram */
.feature-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--surface);
    border: 1px solid var(--border);
}

.feature-visual-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}

/* Server rack diagram */
.server-rack {
    display: flex; flex-direction: column;
    gap: 6px; width: 70%; max-width: 300px;
}
.server-unit {
    height: 36px;
    background: rgba(0,167,138,0.06);
    border: 1px solid rgba(0,167,138,0.12);
    border-radius: 8px;
    display: flex; align-items: center;
    padding: 0 14px;
    gap: 8px;
    animation: server-blink 3s ease-in-out infinite;
}
.server-unit:nth-child(2) { animation-delay: 0.5s; }
.server-unit:nth-child(3) { animation-delay: 1s; }
.server-unit:nth-child(4) { animation-delay: 1.5s; }

.server-led {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
}
.server-bar {
    flex: 1; height: 4px;
    background: rgba(0,167,138,0.15);
    border-radius: 2px;
    position: relative; overflow: hidden;
}
.server-bar::after {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 60%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 2px;
    animation: bar-fill 4s ease-in-out infinite;
}
.server-unit:nth-child(1) .server-bar::after { width: 85%; animation-delay: 0.2s; }
.server-unit:nth-child(2) .server-bar::after { width: 62%; animation-delay: 0.7s; }
.server-unit:nth-child(3) .server-bar::after { width: 91%; animation-delay: 1.2s; }
.server-unit:nth-child(4) .server-bar::after { width: 45%; animation-delay: 0.4s; }

@keyframes server-blink {
    0%, 100% { border-color: rgba(0,167,138,0.12); }
    50% { border-color: rgba(0,167,138,0.25); }
}

@keyframes bar-fill {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Globe/map diagram */
.globe-visual {
    width: 200px; height: 200px;
    border: 2px solid rgba(0,167,138,0.15);
    border-radius: 50%;
    position: relative;
    animation: globe-rotate 20s linear infinite;
}
.globe-visual::before,
.globe-visual::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(0,167,138,0.08);
    border-radius: 50%;
}
.globe-visual::before {
    top: 10%; bottom: 10%;
    left: 25%; right: 25%;
}
.globe-visual::after {
    top: 25%; bottom: 25%;
    left: 10%; right: 10%;
}

.globe-line-h, .globe-line-v {
    position: absolute;
    background: rgba(0,167,138,0.08);
}
.globe-line-h {
    height: 1px; width: 100%;
    top: 50%; left: 0;
}
.globe-line-v {
    width: 1px; height: 100%;
    left: 50%; top: 0;
}

.globe-dot {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0,167,138,0.6);
    animation: dot-ping 3s ease-in-out infinite;
}
.globe-dot::after {
    content: '';
    position: absolute; inset: -4px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: ping-ring 3s ease-in-out infinite;
}
.globe-dot:nth-child(4) { top: 30%; left: 35%; animation-delay: 0s; }
.globe-dot:nth-child(5) { top: 55%; left: 60%; animation-delay: 1s; }
.globe-dot:nth-child(6) { top: 40%; left: 20%; animation-delay: 2s; }

@keyframes globe-rotate { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes dot-ping {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
@keyframes ping-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Shield diagram */
.shield-visual {
    position: relative;
    width: 160px; height: 180px;
}
.shield-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 30px rgba(0,167,138,0.2));
}

/* Uptime bar chart */
.uptime-chart {
    display: flex; align-items: flex-end;
    gap: 6px; height: 160px;
    padding: 0 20px;
}
.uptime-bar {
    flex: 1; max-width: 24px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    animation: bar-grow 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.uptime-bar:nth-child(1) { height: 75%; animation-delay: 0.1s; }
.uptime-bar:nth-child(2) { height: 88%; animation-delay: 0.2s; }
.uptime-bar:nth-child(3) { height: 92%; animation-delay: 0.3s; }
.uptime-bar:nth-child(4) { height: 85%; animation-delay: 0.4s; }
.uptime-bar:nth-child(5) { height: 95%; animation-delay: 0.5s; }
.uptime-bar:nth-child(6) { height: 98%; animation-delay: 0.6s; }
.uptime-bar:nth-child(7) { height: 97%; animation-delay: 0.7s; }
.uptime-bar:nth-child(8) { height: 99%; animation-delay: 0.8s; }

@keyframes bar-grow {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

@media (min-width: 1024px) {
    .feature-inner { grid-template-columns: 1fr 1fr; }
    .feature-section:nth-child(even) .feature-inner { direction: rtl; }
    .feature-section:nth-child(even) .feature-inner > * { direction: ltr; }
}

/* ===== ARCHITECTURE DIAGRAM ===== */
.architecture {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.architecture-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.architecture h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800; letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.architecture-desc {
    font-size: 16px; color: var(--text-dim);
    max-width: 560px; margin: 0 auto 60px;
    line-height: 1.7;
}

.arch-diagram {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.arch-layer {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.arch-layer:hover {
    border-color: rgba(0,167,138,0.3);
    box-shadow: 0 0 24px var(--accent-glow);
}
.arch-layer-label {
    width: 100%;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}
.arch-node {
    padding: 10px 18px;
    font-size: 13px; font-weight: 600;
    color: var(--text-dim);
    background: rgba(0,167,138,0.05);
    border: 1px solid rgba(0,167,138,0.1);
    border-radius: 8px;
}

.arch-connector {
    display: flex; justify-content: center;
    padding: 8px 0;
    color: var(--accent);
    opacity: 0.4;
}
.arch-connector svg { width: 20px; height: 20px; }

/* ===== CTA FINAL ===== */
.cloud-cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cloud-cta::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,167,138,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cloud-cta-inner {
    position: relative; z-index: 1;
    max-width: 600px; margin: 0 auto; padding: 0 24px;
}
.cloud-cta h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 20px;
}
.cloud-cta p {
    font-size: 17px; color: var(--text-dim);
    line-height: 1.7; margin-bottom: 36px;
}
.cloud-cta-buttons {
    display: flex; flex-wrap: wrap;
    gap: 14px; justify-content: center;
}

/* ===== FOOTER MINI ===== */
.cloud-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}
.cloud-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    gap: 16px;
}
.cloud-footer-logo img { height: 22px; }
.cloud-footer-text {
    font-size: 13px; color: var(--text-dim);
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .cloud-hero { min-height: 90vh; padding-top: 80px; }
    .scroll-indicator { display: none; }
    .feature-section { padding: 80px 0; }
    .architecture { padding: 80px 0; }
    .cloud-cta { padding: 80px 0; }
    .globe-visual { width: 150px; height: 150px; }
    .topbar { padding: 0 16px; }
}
