/*
Theme Name: DigiPOS Landing
Theme URI: https://digitallogistic.co.uk
Description: Marketing landing page for the DigiPOS restaurant management platform.
Version: 1.0.0
Author: Digital Logistic Ltd
Author URI: https://digitallogistic.co.uk
Text Domain: digipos-landing
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --accent: #3498db;
    --bg-dark: #0a0a1a;
    --bg-darker: #060612;
    --bg-card: #ffffff;
    --bg-section: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #8892a0;
    --text-body: #4a5568;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --radius: 16px;
    --timeline-color: #2ecc71;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    background: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    font-weight: 900;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.navbar-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.4);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(160deg, var(--bg-dark) 0%, #0f1b3d 40%, #1a1a3e 70%, var(--bg-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(46, 204, 113, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.4);
    color: white;
}

.hero-cta i {
    transition: transform var(--transition);
}

.hero-cta:hover i {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    transition: color var(--transition);
}

.scroll-indicator a:hover {
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
    background: var(--bg-section);
    padding: 100px 0 120px;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary));
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Timeline item */
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg-section);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

.timeline-dot i {
    display: none;
}

/* Left/Right layout */
.timeline-item .timeline-image,
.timeline-item .timeline-content {
    width: calc(50% - 50px);
}

/* Default: image left, content right */
.timeline-item .timeline-image {
    margin-right: auto;
    padding-right: 20px;
}

.timeline-item .timeline-content {
    margin-left: auto;
    padding-left: 20px;
}

/* Reversed: content left, image right */
.timeline-item.reversed .timeline-content {
    order: -1;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
}

.timeline-item.reversed .timeline-image {
    margin-right: 0;
    margin-left: auto;
    padding-right: 0;
    padding-left: 20px;
}

.timeline-item.reversed .timeline-content .feature-list {
    text-align: left;
    direction: ltr;
}

/* Image container */
.timeline-image-wrapper {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0,0,0,0.15);
}

.timeline-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Placeholder when no image */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 3rem;
    color: white;
}

.image-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.placeholder-pos { background: linear-gradient(135deg, #667eea, #764ba2); }
.placeholder-kds { background: linear-gradient(135deg, #f093fb, #f5576c); }
.placeholder-courier { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.placeholder-customer { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.placeholder-website { background: linear-gradient(135deg, #fa709a, #fee140); }

/* Content */
.timeline-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.timeline-content .subtitle {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 6px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary);
    font-size: 0.75rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: white;
    padding: 100px 0 120px;
}

.features-section .section-title h2 {
    color: var(--text-dark);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-section);
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-card.visible:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(160deg, var(--bg-dark) 0%, #0f1b3d 50%, var(--bg-dark) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(46, 204, 113, 0.08) 0%, transparent 60%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .hero-cta {
    margin-bottom: 32px;
}

.cta-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-contact a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.cta-contact a:hover {
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-darker);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--primary);
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 70px;
    }

    .timeline-item .timeline-image,
    .timeline-item .timeline-content,
    .timeline-item.reversed .timeline-image,
    .timeline-item.reversed .timeline-content {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
        order: unset;
    }

    .timeline-item .timeline-image {
        margin-bottom: 24px;
    }

    .timeline-item.reversed .timeline-content {
        text-align: left;
        padding-right: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .timeline-section {
        padding: 60px 0 80px;
    }

    .timeline-item {
        margin-bottom: 48px;
    }

    .features-section {
        padding: 60px 0 80px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .cta-contact {
        flex-direction: column;
        gap: 16px;
    }

    .navbar-cta span {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-dot {
        left: 16px;
        width: 16px;
        height: 16px;
    }

    .timeline-item {
        padding-left: 44px;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .section-title {
        margin-bottom: 40px;
    }
}
