/* ===========================
   KESTI LANDING STYLES
   Shared CSS for all landing pages
   =========================== */

/* ===========================
   VARIABLES
   =========================== */
:root {
    --primary: #A855F7;
    --primary-dark: #7C3AED;
    --primary-darker: #6D28D9;
    --primary-light: #C084FC;
    --primary-ultra-light: #F3E8FF;
    --primary-glow: rgba(168, 85, 247, 0.18);

    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;

    --bg: #FFFFFF;
    --bg-soft: #FAFAFE;
    --bg-section: #F6F4FB;
    --bg-card: #FFFFFF;
    --bg-elevated: #F9F7FD;
    --bg-dark: #0c0a14;

    --border: #EDE9F6;
    --border-light: #F3F0FA;
    --border-hover: rgba(168, 85, 247, 0.25);

    --text: #1A1133;
    --text-secondary: #5C5470;
    --text-muted: #9490A3;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(26,17,51,0.04), 0 1px 2px rgba(26,17,51,0.06);
    --shadow-md: 0 4px 16px rgba(26,17,51,0.06), 0 1px 3px rgba(26,17,51,0.04);
    --shadow-lg: 0 12px 40px rgba(26,17,51,0.08), 0 4px 12px rgba(26,17,51,0.04);
    --shadow-xl: 0 24px 60px rgba(26,17,51,0.1);
    --shadow-purple: 0 8px 32px rgba(168, 85, 247, 0.2);

    --font: 'Outfit', -apple-system, sans-serif;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.35s ease;
}

.navbar.scrolled,
.navbar.static {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 8px rgba(26,17,51,0.04);
}

.navbar.scrolled {
    padding: 12px 0;
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 12px; }

.nav-logo-text { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.nav-logo-text em { font-style: normal; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-links a {
    font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
    transition: color 0.25s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--primary);
    border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; background: var(--primary);
    color: #fff; font-weight: 600; font-size: 0.95rem;
    border-radius: var(--radius-full); transition: all 0.3s;
    box-shadow: var(--shadow-purple);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    z-index: 999; flex-direction: column; align-items: center;
    justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.4rem; font-weight: 600; color: var(--text-secondary); transition: color 0.25s; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; color: var(--text); font-size: 2rem; line-height: 1; }

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 32px; background: var(--primary);
    color: #fff; font-weight: 700; font-size: 1.05rem;
    border-radius: var(--radius-full); transition: all 0.3s;
    box-shadow: var(--shadow-purple); position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(168,85,247,0.3); }
.btn-primary:hover::before { transform: translateX(100%); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 32px; background: transparent;
    color: var(--text-secondary); font-weight: 600; font-size: 1.05rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-full);
    transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-ultra-light); }

.btn-white {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 32px; background: #fff; color: var(--primary-dark);
    font-weight: 700; font-size: 1.05rem; border-radius: var(--radius-full);
    transition: all 0.3s; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }

.btn-ghost-white {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 32px; background: rgba(255,255,255,0.12);
    color: #fff; font-weight: 600; font-size: 1.05rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full); transition: all 0.3s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }

/* ===========================
   SECTIONS COMMON
   =========================== */
.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; background: var(--primary-ultra-light);
    border: 1px solid rgba(168,85,247,0.1);
    border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 900; line-height: 1.15;
    letter-spacing: -1px; color: var(--text);
    margin-bottom: 14px;
}
.section-desc { font-size: 1.08rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ===========================
   PAGE HERO (Legal pages)
   =========================== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(170deg, var(--bg) 0%, var(--bg-section) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -200px; right: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.06), transparent 70%);
    pointer-events: none;
}
.page-hero-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    background: var(--primary-ultra-light); border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
    letter-spacing: -1px; color: var(--text); margin-bottom: 16px;
}
.page-hero p {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto;
}
.page-hero-meta {
    margin-top: 24px; font-size: 0.9rem; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ===========================
   LEGAL CONTENT
   =========================== */
.legal-content {
    padding: 60px 0 100px;
}
.legal-content .container {
    max-width: 800px;
}
.legal-section {
    margin-bottom: 48px;
}
.legal-section h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--text);
    margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.legal-section h2 .section-number {
    width: 36px; height: 36px; background: var(--primary-ultra-light);
    color: var(--primary); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 700;
    flex-shrink: 0;
}
.legal-section h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--text);
    margin: 24px 0 12px;
}
.legal-section p {
    color: var(--text-secondary); margin-bottom: 16px;
    line-height: 1.8;
}
.legal-section ul {
    margin: 16px 0 16px 24px;
    list-style: disc;
}
.legal-section ul li {
    color: var(--text-secondary); margin-bottom: 10px;
    line-height: 1.7;
}
.legal-section ul li strong {
    color: var(--text);
}
.legal-highlight {
    background: var(--primary-ultra-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}
.legal-highlight p {
    margin: 0; color: var(--primary-dark);
}
.legal-warning {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}
.legal-warning p {
    margin: 0; color: #92400E;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}
.legal-table th, .legal-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.legal-table th {
    background: var(--bg-section);
    font-weight: 700;
    color: var(--text);
}
.legal-table td {
    color: var(--text-secondary);
}
.legal-table tr:last-child td {
    border-bottom: none;
}
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--success-light);
    color: var(--success);
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}
.legal-contact {
    background: var(--bg-section);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    margin-top: 48px;
}
.legal-contact h3 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 12px;
}
.legal-contact p {
    color: var(--text-secondary); margin-bottom: 20px;
}
.legal-contact a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: var(--primary);
    color: #fff; font-weight: 600; border-radius: var(--radius-full);
    transition: all 0.3s;
}
.legal-contact a:hover { background: var(--primary-dark); }

/* ===========================
   FOOTER
   =========================== */
.footer { background: var(--bg-dark); padding: 64px 0 28px; color: #ccc; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand-desc { font-size: 0.88rem; color: #777; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #888; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: #999; transition: color 0.25s; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.84rem; color: #555; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #777; font-size: 0.85rem; font-weight: 600; transition: all 0.3s;
}
.footer-social:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(168,85,247,0.08); }

.footer-company { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.04); text-align: center; }
.footer-company span { font-size: 0.75rem; color: #666; letter-spacing: 0.3px; }
.footer-company span a { color: #C084FC !important; transition: color 0.2s; }
.footer-company span a:hover { color: #A855F7 !important; text-decoration: underline; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp { from { opacity:0; transform:translateY(26px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.5; transform:scale(1.5); }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .page-hero { padding: 120px 0 48px; }
    .page-hero h1 { font-size: 1.8rem; }

    .legal-content { padding: 40px 0 60px; }
    .legal-section h2 { font-size: 1.3rem; }
    .legal-table { font-size: 0.9rem; }
    .legal-table th, .legal-table td { padding: 12px 14px; }

    .btn-primary, .btn-outline, .btn-white, .btn-ghost-white { width: 100%; justify-content: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 420px) {
    .section-title { font-size: 1.7rem; }
}
