/* ============================================
   GIF Web Solutions - Kondexa Product Site
   Shared Stylesheet
   ============================================ */

:root {
    --ivory: #f4f1eb;
    --ivory-dark: #e9e4db;
    --ink: #171816;
    --ink-soft: #4d504a;
    --muted: #777970;
    --line: #d6d1c7;
    --forest: #174b42;
    --forest-light: #e2ece8;
    --forest-soft: #c5ddd5;
    --white: #ffffff;
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1320px;
    --shadow-sm: 0 4px 12px rgba(23,24,22,0.06);
    --shadow-md: 0 12px 32px rgba(23,24,22,0.10);
    --shadow-lg: 0 25px 60px rgba(23,24,22,0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--ink);
    background: var(--ivory);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: min(calc(100% - 64px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(42px, 6vw, 88px);
}

h2 {
    font-size: clamp(32px, 4.5vw, 64px);
}

h3 {
    font-size: clamp(24px, 3vw, 40px);
}

h4 {
    font-size: clamp(18px, 2vw, 26px);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.text-muted {
    color: var(--muted);
}

.text-ink-soft {
    color: var(--ink-soft);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(244, 241, 235, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 2px 20px rgba(23,24,22,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.7;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-style: italic;
    letter-spacing: 0;
    flex-shrink: 0;
}

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

.nav a {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--forest);
    transition: width 0.25s ease;
}

.nav a:hover {
    color: var(--forest);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--forest);
    font-weight: 600;
}

.nav a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
    border-radius: 1px;
}

/* ============================================
   Buttons
   ============================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button:active {
    transform: translateY(0);
}

.button-dark {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.button-dark:hover {
    background: var(--forest);
    border-color: var(--forest);
}

.button-light {
    background: transparent;
    border-color: var(--ink);
}

.button-light:hover {
    color: #fff;
    background: var(--ink);
}

.button-forest {
    color: #fff;
    background: var(--forest);
    border-color: var(--forest);
}

.button-forest:hover {
    background: #0f3a32;
    border-color: #0f3a32;
}

.button-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.button-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.button-sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

.button-lg {
    min-height: 58px;
    padding: 0 36px;
    font-size: 16px;
}

.button .arrow {
    transition: transform 0.2s ease;
}

.button:hover .arrow {
    transform: translateX(3px);
}

/* ============================================
   Cards
   ============================================ */

.card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--forest-soft);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--forest-light);
    color: var(--forest);
    font-size: 20px;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.card p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Screenshot Placeholders
   ============================================ */

.screenshot-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--ivory-dark), var(--ivory));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 24px;
    overflow: hidden;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        linear-gradient(var(--line) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.screenshot-placeholder .placeholder-icon {
    font-size: 32px;
    opacity: 0.5;
}

.screenshot-placeholder .placeholder-label {
    font-weight: 700;
    color: var(--ink-soft);
    font-size: 15px;
    z-index: 1;
}

.screenshot-placeholder .placeholder-desc {
    font-size: 13px;
    max-width: 280px;
    z-index: 1;
}

.screenshot-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.screenshot-frame .frame-header {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: #e8e8e8;
    border-bottom: 1px solid var(--line);
}

.screenshot-frame .frame-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5c5c5;
}

/* ============================================
   Feature Grid
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   Tag / Badge
   ============================================ */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tag-green {
    background: var(--forest-light);
    color: var(--forest);
}

.tag-dark {
    background: var(--ink);
    color: #fff;
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

/* ============================================
   Pricing Table
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    padding: 36px 32px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--forest-soft);
}

.pricing-card.featured {
    border-color: var(--forest);
    background: linear-gradient(180deg, var(--forest-light) 0%, var(--white) 40%);
}

.pricing-card.featured::before {
    content: 'Consigliato';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 0 0 10px 10px;
}

.pricing-card .plan-name {
    font-family: Georgia, serif;
    font-size: 22px;
    margin-bottom: 6px;
}

.pricing-card .plan-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
    min-height: 42px;
}

.pricing-card .plan-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    font-family: Georgia, serif;
}

.pricing-card .plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
}

.pricing-card .plan-note {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-card ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-soft);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--forest);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card ul li.missing::before {
    content: '—';
    color: var(--muted);
}

.pricing-card ul li.missing {
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.6;
}

/* ============================================
   Dark Sections
   ============================================ */

.dark-section {
    background: var(--ink);
    color: var(--ivory);
}

.dark-section h2,
.dark-section h3 {
    color: var(--ivory);
}

.dark-section p {
    color: #a9aaa3;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 60px 0 32px;
    color: #a9aaa3;
    background: var(--ink);
    font-size: 13px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #343630;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .brand {
    margin-bottom: 16px;
    color: var(--ivory);
}

.footer-brand .brand-mark {
    border-color: var(--ivory);
}

.footer-brand p {
    color: #8a8b84;
    line-height: 1.7;
    font-size: 14px;
}

.footer-col h5 {
    color: var(--ivory);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #8a8b84;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--ivory);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom .highlight {
    color: var(--ivory);
    font-weight: 600;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--forest);
}

.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--ink);
    font-weight: 500;
}

/* ============================================
   Demo CTA Banner
   ============================================ */

.demo-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--forest) 0%, #0f3a32 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.demo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.demo-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.demo-banner h3 {
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 8px;
}

.demo-banner p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    max-width: 480px;
}

.demo-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ============================================
   One-Shot Badge
   ============================================ */

.oneshot-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #3d3d3d;
    border-radius: var(--radius-sm);
    color: #e8e8e8;
    font-size: 14px;
}

.oneshot-badge .badge-icon {
    font-size: 20px;
}

.oneshot-badge strong {
    color: #fff;
    font-weight: 700;
}

/* ============================================
   Server Platform Visual
   ============================================ */

.server-visual {
    padding: 40px;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
    border-radius: var(--radius);
    border: 1px solid #2a3040;
    position: relative;
    overflow: hidden;
}

.server-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), #2a8a75, var(--forest));
}

.server-visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.server-visual-header .server-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-visual-header span {
    color: #8a9ab0;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.server-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.server-module {
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: var(--transition);
}

.server-module:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.server-module .mod-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.server-module h5 {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.server-module p {
    color: #8a9ab0;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .feature-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 850px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .feature-grid,
    .feature-grid-2 {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .demo-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .demo-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .feature-grid-4 {
        grid-template-columns: 1fr;
    }

    .server-modules {
        grid-template-columns: 1fr;
    }

    .button-lg {
        min-height: 52px;
        padding: 0 24px;
        font-size: 14px;
    }
}
