/* ZovCloud — Global Styles */
/* Inter @font-face: see ../resources/libs/fonts/inter.css (linked in HTML <head>) */

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --color-primary:     #ffa366;
    --color-primary-dk:  #f09055;
    --color-primary-lt:  #fff8f4;
    --color-dark:        #0a0f1a;
    --color-text:        #111827;
    --color-text-sec:    #6b7280;
    --color-text-muted:  #9ca3af;
    --color-bg:          #ffffff;
    --color-bg-soft:     #f7f8fa;
    --color-bg-dark:     #0f1117;
    --color-border:      #e5e7eb;
    --color-border-lt:   #f0f1f3;
    --radius-sm:         6px;
    --radius-md:         10px;
    --radius-lg:         16px;
    --radius-xl:         24px;
    --shadow-sm:         0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:         0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:         0 12px 40px rgba(0,0,0,0.12);
    --transition:        all 0.2s ease;
    --max-width:         1280px;
    --nav-height:        64px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ============================================================
   Typography Utilities
   ============================================================ */
.text-center   { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffc49a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   Button Components
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-md); font-size: 14px;
    font-weight: 600; border: none; cursor: pointer; white-space: nowrap;
    text-decoration: none; transition: var(--transition); line-height: 1;
    font-family: inherit;
}
.btn-primary {
    background: var(--color-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(255,163,102,0.16);
}
.btn-primary:hover {
    background: var(--color-primary-dk); transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,163,102,0.22);
}
.btn-ghost {
    background: transparent; color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { background: var(--color-bg-soft); border-color: #d1d5db; }
.btn-dark { background: var(--color-dark); color: #fff; }
.btn-dark:hover { background: #1a2234; transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   Section Utilities
   ============================================================ */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary);
    background: var(--color-primary-lt); padding: 4px 12px; border-radius: 999px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.2; color: var(--color-text);
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.0625rem; color: var(--color-text-sec); line-height: 1.7;
    max-width: 580px;
}
.section-desc-center { margin: 0 auto; }

/* ============================================================
   Card Component
   ============================================================ */
.card {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================================================
   Badge
   ============================================================ */
.badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase;
}
.badge-blue    { background: #dbeafe; color: #1d4ed8; }
.badge-green   { background: #dcfce7; color: #15803d; }
.badge-orange  { background: #fff7ed; color: #c2410c; }

/* ============================================================
   Grid helpers
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   Divider
   ============================================================ */
.divider { height: 1px; background: var(--color-border); margin: 0; border: none; }

/* ============================================================
   Misc utilities
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
