/* 
   RENTAOK SAAS DESIGN SYSTEM 
   Style: Professional SaaS, Modern, Clean, High Trust
   Colors: Graphite, Indigo, White, Emerald
   Typography: Inter / Manrope
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    /* Colors - Ultra Dark Pro */
    --color-graphite-dark: #020617; /* Slate 950 - Deepest black-blue */
    --color-graphite-soft: #0f172a; /* Slate 900 */
    --color-indigo-primary: #6366f1;
    --color-indigo-hover: #4f46e5;
    --color-emerald-status: #10b981;
    --bg-light: #020617;
    --bg-soft: #0f172a;
    --bg-neutral: #1e293b;
    --color-border-soft: rgba(255, 255, 255, 0.05);
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-on-dark: #f8fafc;

    /* Spacing & Sizing */
    --radius-2xl: 1.5rem;
    --radius-xl: 1rem;
    --radius-lg: 0.75rem;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);

    /* Glassmorphism Tokens - Dark Enhanced */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

    --container-max-width: 1200px;
    --section-spacing: 4.5rem;

    /* Mesh Gradients & Patterns - Dark Emerald/Indigo */
    --mesh-glow: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                 radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
                 radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
                 radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    --grid-pattern: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-mesh {
    background-color: var(--bg-light);
    background-image: var(--mesh-glow);
    position: relative;
}

.bg-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grid-pattern);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    color: var(--color-text-main);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.section-padding { padding: var(--section-spacing) 0; }
.bg-neutral { background-color: var(--bg-neutral); }
.bg-dark { background-color: var(--color-graphite-dark); color: white; }
.bg-indigo { background-color: var(--color-indigo-primary); color: white; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-indigo-primary) 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-indigo-hover) 0%, var(--color-indigo-primary) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-indigo-primary);
    border: 2px solid var(--color-indigo-primary);
}

.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.1rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo img { height: 40px; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--color-emerald-status); }

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    max-width: 700px;
    line-height: 1.05;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--color-indigo-primary), var(--color-emerald-status));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    max-width: 580px;
    opacity: 0.8;
}

.hero-actions { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.hero-trust { font-size: 0.9rem; color: var(--color-text-muted); }
.hero-visual { position: relative; max-width: 350px; margin: 0 auto; }

.mockup-container {
    background: #020617;
    border-radius: var(--radius-2xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.mockup-container img { width: 100%; border-radius: calc(var(--radius-2xl) - 0.5rem); display: block; }

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pain-card {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 0;
    background: var(--color-indigo-primary);
    transition: height 0.3s ease;
}

.pain-card:hover::before { height: 100%; }

.pain-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--color-indigo-primary);
    box-shadow: var(--shadow-premium);
}

.pain-icon { font-size: 2rem; margin-bottom: 1.5rem; display: block; }

/* Routine Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-lg { grid-column: span 8; grid-row: span 2; }
.bento-md { grid-column: span 4; grid-row: span 2; }
.bento-sm { grid-column: span 4; grid-row: span 1; }

.step-badge {
    width: 40px; height: 40px;
    background: var(--color-indigo-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.video-container {
    width: 100%; max-width: 300px; margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-container video { width: 100%; display: block; }

/* Traceability */
.segment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.segment-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-2xl);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.faq-answer {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px; opacity: 1; padding-bottom: 1.5rem;
}

.faq-answer-inner { padding: 0 2rem; }

/* Footer */
.footer-new {
    padding: 6rem 0 3rem;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-pro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsiveness */
@media (max-width: 992px) {
    .bento-lg, .bento-md, .bento-sm { grid-column: span 12; }
    .footer-pro-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .nav-links { display: none !important; }
    .hero { padding-top: 8rem; padding-bottom: 4rem; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-actions { flex-direction: column; gap: 1rem; }
    .problem-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
    .pain-card { padding: 2rem 1.5rem !important; }
    .segment-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 3.5rem 0; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
    .footer-pro-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* Overflow Fixes */
* { max-width: 100%; }
img { height: auto; }