/* DUALITY BENTO DESIGN SYSTEM (TWENTY.COM INSPIRED) */

:root {
    /* Palette Exactness */
    --bg-body: #FFFFFF;
    
    /* Thin SaaS Borders */
    --border-soft: #F1F2F4;
    --border-default: #E1E3E6;
    --border-dark: #C1C4C9;
    
    /* Text */
    --text-heading: #0F1115;
    --text-body: #3E4249;
    --text-muted: #828790;
    
    /* The "Duality" Accents */
    --accent-black: #0F1115;
    --accent-white: #FFFFFF;
    
    /* Illustration neo-boxes */
    --ill-border: 1.5px solid #000000;
    --ill-shadow: 2px 2px 0px #000000;
    --ill-green: #BBF7D0; 
    --ill-blue: #BAE6FD; 
    --ill-purple: #E9D5FF; 
    --ill-pink: #FBCFE8;
    
    /* UI Tags inside App */
    --tag-magenta-bg: #FDF2F8; --tag-magenta-text: #DB2777;
    --tag-yellow-bg: #FEFCE8; --tag-yellow-text: #CA8A04;
    --tag-green-bg: #F0FDF4; --tag-green-text: #16A34A;
    --tag-blue-bg: #EFF6FF; --tag-blue-text: #2563EB;
    
    /* Geometric Radii */
    --rad-pill: 100px;
    --rad-card: 16px;
    --rad-inner-card: 12px;
    --rad-ui: 8px;
    
    /* Floating Depths */
    --shadow-app: 0 16px 40px -4px rgba(0,0,0,0.06), 0 8px 16px -4px rgba(0,0,0,0.04);
    --shadow-card: 0 2px 4px rgba(0,0,0,0.02);
    
    /* Typography Roles */
    --font-display: 'Outfit', sans-serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
}

/* OVERRIDES FOR GLOBAL SITE.CSS */
body.sd-body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: var(--font-ui);
    
    /* Fade Background effect */
    background-image: 
        linear-gradient(to bottom, var(--bg-body) 0%, rgba(255,255,255,0.7) 400px, rgba(255,255,255,0) 1000px),
        radial-gradient(var(--border-dark) 1px, transparent 1px);
    background-size: 100% 1000px, 28px 28px;
    background-repeat: no-repeat, repeat;
    background-attachment: scroll, fixed;
}

h1, h2, h3, h4, h5, h6, .sd-brand {
    font-family: var(--font-display);
    color: var(--text-heading);
}

.sd-home-hero h1 {
    font-weight: 800;
    font-size: 4rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    color: var(--text-heading);
    -webkit-text-fill-color: initial;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    margin-top: 24px;
    max-width: 600px;
    margin-inline: auto;
}

.bento-h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}



.btn.sd-btn-primary {
    background: var(--accent-black) !important;
    color: var(--accent-white) !important;
}

/* STRUCTURAL BENTO MODULES */
.bento-max-w-1000 { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.bento-max-w-1200 { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bento-py-20 { padding-top: 100px; padding-bottom: 80px; }
.bento-section-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 450px; font-weight: 500; line-height: 1.6; }

/* THE APP ENVELOPE */
.app-envelope {
    background: var(--bg-body);
    border: 2.5px solid var(--accent-black) !important;
    border-radius: var(--rad-card);
    box-shadow: var(--shadow-app);
    overflow: hidden;
    width: 100%;
}
.app-tabs {
    display: flex; align-items: center; gap: 32px; padding: 0 24px;
    border-bottom: 2.5px solid var(--accent-black) !important; height: 48px; background: #FFF;
}
.app-tab { font-size: 13px; font-weight: 600; color: var(--text-heading); display: flex; align-items: center; gap: 8px; height: 100%; border-bottom: 2px solid var(--accent-black); }
.app-tab-inactive { font-size: 13px; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 8px; height: 100%; border-bottom: 2px solid transparent; }

.tiny-box { width: 12px; height: 12px; border-radius: 3px; }
.tb-magenta { background: var(--tag-magenta-text); }
.tb-yellow { background: var(--tag-yellow-text); }
.tb-green { background: var(--tag-green-text); }
.tb-blue { background: var(--tag-blue-text); }

/* Bento Grids */
.feature-grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; margin-bottom: 100px;
}
@media (max-width: 900px) {
    .feature-grid-3 { grid-template-columns: 1fr; }
}

.feature-card {
    background: #FFFFFF; border: 2.5px solid var(--accent-black) !important; border-radius: var(--rad-card);
    box-shadow: var(--shadow-card); padding: 32px 24px; display: flex; flex-direction: column; gap: 24px;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }

.harsh-ill-box {
    width: 64px; height: 64px; border: var(--ill-border); border-radius: var(--rad-inner-card);
    box-shadow: var(--ill-shadow); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.hi-green { background: var(--ill-green); }
.hi-blue { background: var(--ill-blue); }
.hi-purple { background: var(--ill-purple); }
.hi-pink { background: var(--ill-pink); }
.hi-white { background: var(--accent-white); }

.fc-title { font-size: 1.125rem; font-weight: 800; color: var(--text-heading); margin-bottom: 8px; font-family: var(--font-display); }
.fc-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; font-weight: 500; }

.complex-bento {
    display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 24px; margin-top: 48px;
}
@media (max-width: 900px) {
    .complex-bento { display: flex; flex-direction: column; }
}
.c-box {
    background: #FFFFFF; border: 2.5px solid var(--accent-black) !important; border-radius: var(--rad-card);
    padding: 32px; display: flex; flex-direction: column; overflow: hidden; position: relative;
    box-shadow: var(--shadow-card);
}
.box-workflows { grid-column: span 8; grid-row: span 2; }
.box-timeline { grid-column: span 4; grid-row: span 2; }
.box-collab { grid-column: span 12; grid-row: span 1; display: flex; flex-direction: row; align-items: center; gap: 40px; }
@media (max-width: 600px) {
    .box-collab { flex-direction: column; align-items: flex-start; }
}

.timeline-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 24px;}
.timeline-item { font-size: 13px; font-weight: 500; display: flex; gap: 16px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 4px; top: 16px; bottom: -20px; width: 1px; background: var(--border-soft); z-index: 1;}
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-dark); margin-top: 5px; z-index: 2;}

.mock-table { width: 100%; border-collapse: collapse; text-align: left; background: #FFFFFF; font-size: 13px;}
.mock-table th { padding: 12px 24px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border-default); background: #FAFAFA; font-size: 12px; }
.mock-table td { padding: 12px 24px; border-bottom: 1px solid var(--border-soft); color: var(--text-heading); font-weight: 500; }
.table-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 40px; font-size: 12px; font-weight: 600; }
.tt-green { background: var(--tag-green-bg); color: var(--tag-green-text); }
.tt-blue { background: var(--tag-blue-bg); color: var(--tag-blue-text); }

.testimonials { display: flex; gap: 20px; overflow-x: auto; padding: 24px 0; margin-top: 32px; scrollbar-width: none;}
.t-card { min-width: 320px; background: #FFFFFF; border: 2.5px solid var(--accent-black) !important; border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card); }
.user-block { display: flex; gap: 12px; align-items: center; margin-bottom: 16px;}
.avatar-img { width: 40px; height: 40px; background: var(--border-soft); border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.t-author { font-size: 0.95rem; font-weight: 700; color: var(--text-heading); font-family: var(--font-display); }
.t-handle { font-size: 0.85rem; color: var(--text-muted); }
.t-text { font-size: 0.95rem; color: var(--text-body); line-height: 1.6; font-weight: 500; }

.hero-btn-group { display: flex; justify-content: center; gap: 16px; margin-top: 32px; margin-bottom: 64px; }
.mock-diagram-container {
    margin-top: auto; width: 100%; height: 220px; border: 2.5px solid var(--accent-black) !important; border-bottom: none; border-top-left-radius: 12px; border-top-right-radius: 12px; background: #FAFAFA; position: relative; overflow: hidden;
}

/* Nav resets for bento */
.sd-site-header { border-bottom: 1px solid var(--border-default); background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); }

/* Responsive Fixes */
.lang-switcher { margin-left: 1rem; display: flex; align-items: center; }

@media (max-width: 991px) {
    .lang-switcher { margin-left: 0; width: 100%; justify-content: flex-start; }
}

@media (max-width: 600px) {
    .sd-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }
}
