/* ===== SHARED STYLES — Unison Marketing Pages ===== */
/* Design System: Plus Jakarta Sans | Dark Navy | SaaS High-Tech Boutique */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    --bg-base:        #060E18;
    --bg-surface:     #0B1C2C;
    --bg-card:        #0F2436;
    --bg-card-hover:  #132C42;
    --bg-alt:         #080F19;

    --border:         rgba(46, 87, 119, 0.32);
    --border-strong:  rgba(46, 87, 119, 0.55);
    --border-bright:  rgba(100, 131, 157, 0.4);

    --blue-primary:   #2E5777;
    --blue-accent:    #3A79B8;
    --blue-light:     #64839D;
    --blue-muted:     #7a9ab5;
    --blue-bright:    #89B8DC;

    --text-primary:   #EEF4FB;
    --text-secondary: #a0b8cc;
    --text-muted:     #64839D;
    --text-dim:       #4a6a80;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 48px rgba(46, 87, 119, 0.25);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    position: sticky;
    top: 0;
    background-color: rgba(6, 14, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.site-nav-logo img { height: 38px; }

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    background: linear-gradient(135deg, #2E5777 0%, #3A79B8 100%) !important;
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: opacity 0.2s, transform 0.15s !important;
    box-shadow: 0 2px 12px rgba(46, 87, 119, 0.4) !important;
}

.nav-cta:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue-light);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 60px 28px;
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 40px;
    align-items: start;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.footer-col a {
    color: var(--blue-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-secondary); }
.footer-logo { display: block; height: 30px; width: auto; max-width: 130px; margin-bottom: 6px; align-self: flex-start; opacity: 0.9; }
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-note { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p { font-size: 12px; color: var(--text-dim); }

/* --- SCROLL ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* --- SHARED BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2E5777 0%, #3A79B8 100%);
    color: #fff;
    padding: 13px 32px;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(46, 87, 119, 0.45);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(46, 87, 119, 0.55);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--blue-light);
    padding: 13px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}

.btn-secondary:hover {
    border-color: var(--blue-bright);
    color: var(--text-secondary);
    background: rgba(46, 87, 119, 0.08);
}

/* --- PAGE LAYOUT HELPERS --- */
.page-section {
    padding: 96px 60px;
}

.page-section-alt {
    padding: 96px 60px;
    background-color: var(--bg-alt);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 14px;
    width: 100%;
    justify-content: center;
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    height: 1px;
    width: 28px;
    background: var(--border-strong);
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-bright) 0%, #A8CCEC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero {
    padding: 88px 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at 50% 0%, rgba(46, 87, 119, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- SECTION BADGE --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 87, 119, 0.15);
    border: 1px solid var(--border-strong);
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-bright);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 6px var(--blue-bright);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* --- GLASS CARD --- */
.glass-card {
    background: rgba(15, 36, 54, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.glass-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

/* --- DOTTED BACKGROUND --- */
.dot-bg {
    position: relative;
}

.dot-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(100, 131, 157, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
}

/* --- CARDS --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

/* --- FAQ ACCORDION --- */
.faq-category { margin-bottom: 48px; }
.faq-category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.faq-item { margin-bottom: 6px; }

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 17px 20px;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s, border-color 0.2s;
    letter-spacing: 0.01em;
}

.faq-question:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }

.faq-arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(46, 87, 119, 0.2);
    color: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    transition: transform 0.3s, background 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}

.faq-item.open .faq-arrow { transform: rotate(45deg); background: rgba(46, 87, 119, 0.35); }
.faq-item.open .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--border-strong);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(8, 20, 32, 0.6);
    border: 1px solid var(--border-strong);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.faq-answer p {
    padding: 18px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* --- CONTACT FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 920px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.contact-form label {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue-primary);
    background: var(--bg-card-hover);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: fit-content;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(46, 87, 119, 0.2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-light);
}

.contact-info-icon svg {
    width: 16px;
    height: 16px;
}

.contact-info-text { display: flex; flex-direction: column; gap: 2px; }

.contact-info-text a {
    color: var(--blue-bright);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-info-text a:hover { color: var(--text-secondary); }

.contact-info-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.form-success {
    text-align: center;
    padding: 48px 20px;
}

.form-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(46, 87, 119, 0.2);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--blue-bright);
}

.form-success h3 { font-size: 22px; margin-bottom: 10px; font-weight: 700; }
.form-success p { color: var(--text-secondary); font-size: 15px; }

.form-error {
    color: #ff8080;
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    display: none;
}

.form-error:not(:empty) { display: block; }

/* --- ABOUT PAGE --- */
.about-story {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-story p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

/* BORDER-GRID layout (inspired by 21st.dev Features 4) */
.border-grid {
    display: grid;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.border-grid-3 { grid-template-columns: repeat(3, 1fr); }
.border-grid-2 { grid-template-columns: repeat(2, 1fr); }

.border-grid-item {
    padding: 32px 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.border-grid-item:hover { background: rgba(46, 87, 119, 0.06); }

.border-grid-3 .border-grid-item:nth-child(3n) { border-right: none; }
.border-grid-2 .border-grid-item:nth-child(2n) { border-right: none; }
.border-grid-item:nth-last-child(-n+3):not(:has(~ .border-grid-item)) { border-bottom: none; }

/* For 3-col grid: remove bottom border from last row */
.border-grid-3 .border-grid-item:nth-last-child(1),
.border-grid-3 .border-grid-item:nth-last-child(2),
.border-grid-3 .border-grid-item:nth-last-child(3) {
    border-bottom: none;
}

.border-grid-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(46, 87, 119, 0.15);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--blue-bright);
    transition: background 0.2s;
}

.border-grid-item:hover .item-icon { background: rgba(46, 87, 119, 0.25); }

.border-grid-item .item-icon svg { width: 18px; height: 18px; }

.border-grid-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.border-grid-item p {
    font-size: 13px;
    color: var(--blue-muted);
    line-height: 1.65;
}

/* --- VALUES GRID (about page) --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s;
}

.value-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.value-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(46, 87, 119, 0.15);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--blue-bright);
}

.value-icon-wrap svg { width: 20px; height: 20px; }

.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.value-card p { font-size: 13px; color: var(--blue-muted); line-height: 1.7; }

/* --- 404 / VERIFICATION CENTERED --- */
.centered-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 60px 40px;
}

.centered-page h1 {
    font-size: 96px;
    font-weight: 800;
    color: var(--blue-light);
    line-height: 1;
    margin-bottom: 8px;
}

.centered-page h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.centered-page p { font-size: 16px; color: var(--text-secondary); max-width: 420px; margin-bottom: 32px; }

.check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(46, 87, 119, 0.2);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--blue-bright);
}

/* --- TESTIMONIAL DISCLAIMER --- */
.testimonial-disclaimer {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    max-width: 560px;
    margin: 32px auto 0;
    line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .site-nav { padding: 14px 20px; }
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 14, 24, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .nav-cta { text-align: center; }

    .site-footer { padding: 40px 20px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

    .page-section, .page-section-alt { padding: 64px 20px; }
    .page-hero { padding: 64px 20px 36px; }
    .page-hero h1 { font-size: 34px; }
    .section-title { font-size: 28px; }

    .values-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .border-grid-3 { grid-template-columns: 1fr; }
    .border-grid-3 .border-grid-item:nth-child(3n) { border-right: 1px solid var(--border); }
    .border-grid-3 .border-grid-item { border-right: none; }
    .border-grid-3 .border-grid-item:last-child { border-bottom: none; }
    .border-grid-3 .border-grid-item:nth-last-child(1),
    .border-grid-3 .border-grid-item:nth-last-child(2),
    .border-grid-3 .border-grid-item:nth-last-child(3) { border-bottom: 1px solid var(--border); }
    .border-grid-3 .border-grid-item:last-child { border-bottom: none; }

    .centered-page h1 { font-size: 64px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; margin-bottom: 36px; }
}
