/*
Theme Name: DeducTrack AU
Theme URI: https://deductrack.com
Author: Darwin Digital Studio
Author URI: https://darwindigitalstudio.com
Description: Custom WordPress theme for DeducTrack AU, an Australian tax deduction and receipt tracking app. Converted from the static DeducTrack AU marketing site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deductrack-au
*/

        :root {
            --bg: #0f172a;
            --surface: #1e293b;
            --surface-light: #334155;
            --text: #f1f5f9;
            --text-light: #94a3b8;
            --primary: #38bdf8;
            --primary-dark: #0ea5e9;
            --primary-light: rgba(56, 189, 248, 0.14);
            --accent: #8b5cf6;
            --accent-pink: #ec4899;
            --accent-glow: rgba(56, 189, 248, 0.22);
            --bg-soft: rgba(255, 255, 255, 0.03);
            --bg-muted: rgba(255, 255, 255, 0.06);
            --border: rgba(255, 255, 255, 0.08);
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.22);
            --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.28);
            --radius: 12px;
            --radius-lg: 16px;
            --max-width: 1200px;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text);
            background: radial-gradient(circle at 50% -20%, #1c3154 0, #0f172a 42%, #0b1120 100%);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .nav-container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
        }

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

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 10px 24px rgba(56, 189, 248, 0.18);
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 32px;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.2s;
            position: relative;
        }

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

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

        .nav-cta {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white !important;
            padding: 10px 22px;
            border-radius: 100px;
            font-weight: 600;
            transition: all 0.2s;
            box-shadow: 0 10px 24px rgba(56, 189, 248, 0.18);
        }

        .nav-cta:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--accent));
            transform: translateY(-1px);
            box-shadow: 0 12px 28px rgba(56, 189, 248, 0.24);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        /* Hero */
        .hero {
            padding: 160px 24px 100px;
            max-width: var(--max-width);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 64px;
            align-items: center;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.14));
            color: #dbeafe;
            padding: 6px 16px;
            border-radius: 100px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 24px;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -1.5px;
            margin-bottom: 24px;
        }

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

        .hero p {
            font-size: 1.25rem;
            color: var(--text-light);
            margin-bottom: 36px;
            max-width: 520px;
            line-height: 1.6;
        }

        .hero-buttons {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 28px;
            border-radius: 100px;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
            border: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            box-shadow: 0 10px 24px rgba(56, 189, 248, 0.18);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--accent));
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(56, 189, 248, 0.24);
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            border-color: rgba(56, 189, 248, 0.45);
            color: var(--text);
            transform: translateY(-2px);
        }

        .hero-visual {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .app-view-frame {
            width: 100%;
            max-width: 380px;
            margin: 0 auto;
            background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
            border-radius: 34px;
            padding: 12px;
            box-shadow:
                0 50px 100px -20px rgba(0,0,0,0.4),
                0 30px 60px -30px rgba(0,0,0,0.28);
            border: 1px solid rgba(255,255,255,0.08);
        }

        .app-view-image {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 26px;
            object-fit: cover;
            background: #0f172a;
        }

        .app-view-caption {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 12px;
            color: var(--text-light);
            font-size: 0.82rem;
            padding: 0 6px 2px;
        }

        .app-view-caption strong {
            color: var(--text);
            font-size: 0.95rem;
        }

        .app-view-pill {
            padding: 6px 10px;
            border-radius: 100px;
            background: rgba(56, 189, 248, 0.12);
            color: #dbeafe;
            border: 1px solid rgba(56, 189, 248, 0.2);
            white-space: nowrap;
        }

        .app-screenshot-section {
            padding: 24px 24px 100px;
        }

        .app-screenshot-row {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding: 8px 2px 12px;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }

        .app-screenshot-row::-webkit-scrollbar {
            height: 8px;
        }

        .app-screenshot-row::-webkit-scrollbar-thumb {
            background: rgba(56, 189, 248, 0.35);
            border-radius: 999px;
        }

        .app-screenshot-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            min-width: 280px;
            scroll-snap-align: start;
            flex: 0 0 280px;
        }

        .app-screenshot-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .app-screenshot-card img {
            display: block;
            width: 100%;
            height: 360px;
            object-fit: contain;
            background: linear-gradient(180deg, #020617 0%, #111827 100%);
            padding: 8px;
        }

        .app-screenshot-caption {
            padding: 16px 18px 18px;
            color: var(--text-light);
            font-size: 0.92rem;
            font-weight: 600;
        }

        .phone-mockup {
            background: none;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            border: 0;
        }

        .phone-screen {
            background: transparent;
            border-radius: 0;
            overflow: hidden;
            aspect-ratio: auto;
        }

        .phone-header {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            padding: 20px;
            color: white;
        }

        .phone-header h3 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .phone-header p {
            font-size: 0.75rem;
            opacity: 0.9;
        }

        .phone-body {
            padding: 16px;
        }

        .deduction-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: var(--bg-soft);
            border-radius: 12px;
            margin-bottom: 10px;
            border: 1px solid var(--border);
        }

        .deduction-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .deduction-info h4 {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .deduction-info p {
            font-size: 0.75rem;
            color: var(--text-light);
        }

        .deduction-amount {
            margin-left: auto;
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--primary);
        }

        /* Features */
        .features {
            background: var(--bg-soft);
            padding: 100px 24px;
        }

        .section-container {
            max-width: var(--max-width);
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            max-width: 640px;
            margin: 0 auto 64px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 16px;
        }

        .section-header p {
            font-size: 1.15rem;
            color: var(--text-light);
        }

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

        .feature-card {
            background: var(--surface);
            padding: 36px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            transition: all 0.3s;
        }

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

        .feature-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

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

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

        /* How It Works */
        .how-it-works {
            padding: 100px 24px;
        }

        .steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            margin-top: 48px;
        }

        .step {
            text-align: center;
            position: relative;
        }

        .step-number {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1.25rem;
            margin: 0 auto 20px;
            box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
        }

        .step h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .step p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* Stats */
        .stats {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            padding: 80px 24px;
            color: white;
        }

        .stats-grid {
            max-width: var(--max-width);
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            text-align: center;
        }

        .stat h3 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .stat p {
            opacity: 0.9;
            font-size: 1rem;
        }

        /* Blog */
        .blog {
            padding: 100px 24px;
            background: var(--bg-soft);
        }

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

        .blog-card {
            background: var(--surface);
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--border);
            transition: all 0.3s;
            cursor: pointer;
        }

        .blog-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .blog-image {
            height: 200px;
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.14));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
        }

        .blog-content {
            padding: 24px;
        }

        .blog-tag {
            display: inline-block;
            background: rgba(56, 189, 248, 0.14);
            color: #e0f2fe;
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .blog-card h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .blog-card p {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 16px;
        }

        .blog-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.8rem;
            color: var(--text-light);
        }

        /* Install App */
        .install {
            padding: 100px 24px;
        }

        .install-container {
            max-width: var(--max-width);
            margin: 0 auto;
            background: linear-gradient(135deg, #0f172a, #1e293b);
            border-radius: var(--radius-lg);
            padding: 80px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .install-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
        }

        .install-container > * {
            position: relative;
            z-index: 1;
        }

        .install-container h2 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .install-container p {
            font-size: 1.15rem;
            opacity: 0.8;
            max-width: 560px;
            margin: 0 auto 36px;
        }

        .store-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .store-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: var(--surface);
            color: var(--text);
            padding: 14px 28px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s;
        }

        .store-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        /* Contact */
        .contact {
            padding: 100px 24px;
            background: rgba(255,255,255,0.02);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 64px;
            align-items: start;
        }

        .contact-info h2 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .contact-info > p {
            color: var(--text-light);
            font-size: 1.1rem;
            margin-bottom: 40px;
        }

        .contact-method {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 28px;
        }

        .contact-method-icon {
            width: 48px;
            height: 48px;
            background: var(--surface);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
            border: 1px solid var(--border);
        }

        .contact-method h4 {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .contact-method p {
            color: var(--text-light);
            font-size: 0.95rem;
        }

        .contact-form {
            background: var(--surface);
            padding: 40px;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-family: inherit;
            font-size: 1rem;
            transition: border-color 0.2s;
            background: rgba(255,255,255,0.03);
            color: var(--text);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: rgba(56, 189, 248, 0.45);
            background: rgba(255,255,255,0.05);
        }

        .form-group textarea {
            min-height: 140px;
            resize: vertical;
        }

        /* About */
        .about {
            padding: 100px 24px;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 64px;
            align-items: center;
        }

        .about-visual {
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.14));
            border-radius: var(--radius-lg);
            padding: 60px;
            text-align: center;
            font-size: 6rem;
        }

        .about-content h2 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 20px;
        }

        .about-content p {
            color: var(--text-light);
            font-size: 1.05rem;
            margin-bottom: 20px;
            line-height: 1.7;
        }

        .about-values {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 32px;
        }

        .about-value {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
        }

        .about-value span {
            width: 32px;
            height: 32px;
            background: rgba(56, 189, 248, 0.14);
            color: #dbeafe;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        /* Privacy Policy */
        .privacy {
            padding: 140px 24px 80px;
            max-width: 800px;
            margin: 0 auto;
        }

        .privacy h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .privacy-date {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 40px;
        }

        .privacy h2 {
            font-size: 1.4rem;
            font-weight: 700;
            margin: 36px 0 16px;
            color: #dbeafe;
        }

        .privacy p, .privacy ul {
            color: var(--text-light);
            margin-bottom: 16px;
            line-height: 1.7;
        }

        .privacy ul {
            padding-left: 24px;
        }

        .privacy li {
            margin-bottom: 8px;
        }

        /* Footer */
        footer {
            background: #0f172a;
            color: white;
            padding: 64px 24px 32px;
        }

        .footer-grid {
            max-width: var(--max-width);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 48px;
            margin-bottom: 48px;
        }

        .footer-brand p {
            color: #cbd5e1;
            margin-top: 16px;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .footer-links h4 {
            font-weight: 700;
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

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

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: white;
        }

        .footer-bottom {
            max-width: var(--max-width);
            margin: 0 auto;
            padding-top: 32px;
            border-top: 1px solid #1e293b;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .footer-bottom p {
            color: #64748b;
            font-size: 0.85rem;
        }

        .footer-bottom-links {
            display: flex;
            gap: 24px;
        }

        .footer-bottom-links a {
            color: #64748b;
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.2s;
        }

        .footer-bottom-links a:hover {
            color: white;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 48px;
            }

            .hero p {
                margin: 0 auto 36px;
            }

            .hero-buttons {
                justify-content: center;
            }

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

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

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

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

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

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

        @media (max-width: 640px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
                color: white;
            }

            .hero h1 {
                font-size: 2.25rem;
            }

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

            .features-grid,
            .steps,
            .stats-grid,
            .blog-grid {
                display: flex;
                overflow-x: auto;
                gap: 16px;
                padding-bottom: 8px;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
            }

            .features-grid > *,
            .steps > *,
            .stats-grid > *,
            .blog-grid > * {
                flex: 0 0 82%;
                min-width: 82%;
                scroll-snap-align: start;
            }

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

            .stats-grid > * {
                flex: 0 0 auto;
                min-width: 0;
            }

            .install-container {
                padding: 48px 24px;
            }

            .install-container h2 {
                font-size: 1.75rem;
            }

            .store-buttons {
                flex-direction: column;
                align-items: stretch;
            }

            .footer-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 24px;
            }

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

        /* Section visibility for SPA feel */
        .page-section {
            display: none;
        }

        .page-section.active {
            display: block;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-in {
            animation: fadeInUp 0.6s ease forwards;
        }
