:root {
    /* Brand Colors extracted from Logo */
    --brand-navy: #1d466b; /* Matches "CRACK" */
    --brand-sky:  #50b9e9; /* Matches "DAWN" */
    --brand-yellow: #ffeb3b;
    --primary:    #f39c12; /* Matches the Sun Icon */
    
    --primary-dark: #d35400;
    --text:       #2c3e50;
    --text-light: #7f8c8d;
    --bg:         #ffffff;
    --bg-alt:     #f8f9fa;
    --dark-bg:    #1a1a1a;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
/* Update global text styles to use Navy for headers */
h1, h2, h3, h4 {
    color: var(--brand-navy);
}

/* Navbar Hover Effect - Change to Sky Blue */
.nav-links a:hover { 
    color: var(--brand-sky); 
}


.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover{color:white;}

.btn-primary {
    background-color: var(--brand-sky);
    color: white;
}
.btn-primary:hover { background-color: var(--brand-navy); transform: translateY(-2px); color:white;}

/* Block button for full width */
.btn-block {
    display: block;
    width: 100%;
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-secondary:hover { background-color: var(--primary); color: white; }

.highlight { color: var(--primary); }

/* Navbar */
.navbar {
    background: white;
    /* CHANGED: Stronger shadow for better separation */
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    /* Optional: Adds a very subtle bottom border for extra definition */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    /* FIX: Added display flex to allow sizing and better alignment */
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    max-width: 300px; 
    text-decoration: none; /* Ensure no underline */
}

/* NEW: Style for the logo image */
.logo img {
    height: 40px; /* Constrain height to fit navbar */
    width: auto;  /* Maintain aspect ratio */
    margin-right: 2px; /* Small gap before trademark if needed */
}

.logo span { color: var(--brand-sky); }

.nav-links a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--text);
}

.nav-links a:hover { color: var(--brand-sky); }
.nav-links a .btn:hover{
    color: white;
}
.nav-links .btn { margin-left: 25px; color: white; }

    .nav-links .demo-link {
    color: var(--primary);             /* Orange Text */
    /*border: 1px solid var(--primary);  /* Orange Border */
    padding: 8px 16px;                 /* Size it to match the Buy button */
    border-radius: 6px;
    font-weight: 600;                  /* Bold text */
    margin-left: 20px;                 /* Space it away from "Support" */
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;             /* Ensures no underline */
}

    /* Hover Effect: Fills with Orange */
    .nav-links .demo-link:hover {
        background-color: var(--primary);
        color: white;
    }

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('images/dawn.png');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content { flex: 1; }

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 600px;
}

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

.hero .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
}

.hero .btn-secondary:hover {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.hero-image { flex: 1; display: flex; justify-content: center; }

.product-mockup {
    width: 100%;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    drop-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Optional: Add a nice hover lift */
.hero-img:hover {
    
    drop-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.fineprint{
    text-align: left;
    font-size:0.8rem;
}

/* --- SHARED SPOTLIGHT SECTION STYLES (Dashboard & History) --- */
.dashboard-section, .history-section {
    padding: 80px 0;
}

.dashboard-section { background-color: var(--bg-alt); }
.history-section { background-color: var(--bg-alt); } /* Can toggle to white if desired */

.spotlight-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Reverse layout for History section to create zig-zag */
.spotlight-layout.reverse {
    flex-direction: row-reverse;
}

.spotlight-info {
    flex: 1;
}

.spotlight-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.spotlight-info .lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.dashboard-legend {
    list-style: none;
    margin: 25px 0;
}

.dashboard-legend li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text);
}

.dashboard-legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
}

.dashboard-legend .check-icon {
    margin-right: 12px;
    color: var(--primary);
    font-size: 1.1rem;
}

.dashboard-legend .dot.blue { background-color: #50b9e9; }
.dashboard-legend .dot.dark { background-color: #1d466b; }
.dashboard-legend .dot.yellow { background-color: #FFEB3B; border: 1px solid #ccc;}
.dashboard-legend .dot.orange { background-color: #FF5722; }

.spotlight-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* --- APP SCREENSHOT CARDS --- */
.app-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 350px; /* Adjusted to match UI feel */
    width: 100%;
    position: relative;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    /* border: 1px solid #eee; */
}

.app-card .caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features */
.features { padding: 80px 0; background: white; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px; 
    /* Compensation: Pulls the grid back out so the padding doesn't shrink it */
    margin: -20px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.1), 
              0 4px 6px -2px rgba(30, 41, 59, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* Only change the shadow for cards inside the white section */
.on-white .feature-card{
box-shadow: 
        0 4px 6px rgba(122, 152, 200, 0.05), 
        0 5px 12px rgba(149, 172, 209, 0.08); 
      
  border: 1px solid rgba(0,0,0,0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #fff5e6;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-light); }

/* How It Works */
.steps {
    /* CHANGED: Switched from black to Brand Navy for a softer look */
    background: var(--brand-navy);
    color: white; 
    padding: 80px 0;
}
.step {
    flex: 1; 
    min-width: 250px;
    
    /* NEW: Thin Yellow Outline & Rounded Corners */
    border: 1px solid var(--brand-yellow);
    border-radius: 20px;
    
    /* Add padding so the text sits nicely inside the box */
    padding: 40px 20px;
    
    /* Optional: Makes the box float up slightly when you hover over it */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: Add a glow effect when the user hovers over a step */
.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 235, 59, 0.2); /* Soft yellow glow */
}

.steps .section-header h2 {
    /* Make the text White or Sky Blue (depending on your preference) */
    color: white; 
    
    /* Bigger size to stand out */
    font-size: 3rem; 
    
    /* A 3-layer shadow: a tight dark outline, a soft drop shadow, and a subtle glow */
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.50),  /* Dark close shadow for definition */
        0 8px 15px rgba(0,0,0,0.30); /* Softer distant shadow for depth */
        
    margin-bottom: 15px;
}

.steps .section-header p {
    color: #e0e0e0; /* Soft light grey */
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.step h3 {
    color: var(--brand-navy); /* Dark Blue Header */
    margin-bottom: 10px;
}
.step p {
    color: var(--text-light); /* Dark Grey body text */
}

/* The White Card Container */
.step {
    flex: 1; 
    min-width: 250px;
    background: white; /* Clean White Background */
    background-image: 
        linear-gradient(0deg, transparent 93%, rgba(0, 0, 0, 0.04) 100%), 
        linear-gradient(90deg, transparent 93%, rgba(0, 0, 0, 0.04) 100%);
    background-size: 5px 5px; /* Controls the tightness of the texture */
    padding: 40px 20px;
    border: none;
    border-top: 8px solid var(--brand-yellow); 
    
    /* Keep the radius, but flatten the top corners slightly so the bar looks straight */
    border-radius: 8px 8px 12px 12px;
    /* Strong shadow to lift the white card off the dark navy wall */
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--brand-navy);
    border: 2px solid var(--brand-yellow);
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Adds a subtle depth */
}

/* =========================================
   TECHNICAL SPECS SECTION
   ========================================= */
.specs { 
    padding: 60px 0; 
    background: var(--bg-alt); /* Light grey background */
}

.specs-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    
    /* The distinctive Orange accent bar on the left */
    border-left: 5px solid var(--primary); 
    
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.specs-box h2 { 
    margin-bottom: 20px;
    color: var(--brand-navy);
}

.specs-box ul { 
    list-style: none; /* Removes standard bullets */
}

.specs-box li {
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* Adds the thin separator line */
    color: var(--text);
}

.specs-box li:last-child { 
    border-bottom: none; /* Removes line from the very last item */
}

.specs-box strong {
    color: var(--brand-navy); /* Makes the labels (Input Voltage, etc) stand out */
    margin-right: 5px;
}

/* NEW PRICING STYLES */
.pricing { padding: 80px 0; background: #fff; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;

}
.on-white .pricing-card{
box-shadow: 
        0 4px 6px rgba(122, 152, 200, 0.03), 
        0 10px 30px rgba(149, 172, 209, 0.05); 
      
  border: 1px solid rgba(0,0,0,0.1);
}

/* Highlight the "Popular" or Kit option */
.pricing-card.popular {
    border: 2px solid var(--primary);
    background: #fffcf5;
}

.pricing-card:hover { transform: translateY(-5px); }

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.pricing-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes button to bottom */
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text);
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features i {
    color: var(--primary);
    margin-right: 10px;
}
/* Container spacing */
.requirements-footer {
    margin-top: 20px; /* Added a bit more space from the button */
    text-align: left;
    color: #666; 
}

/* Remove default list styling */
.requirements-list {
    list-style-type: none; /* Removes the default black dot */
    padding-left: 0;       /* Clears default browser padding */
    margin: 10px 0 0 5px;  /* Adjust margins as needed */
}

/* Prepare the list item for a custom icon */
.requirements-list li {
    position: relative;    /* Needed to anchor the custom box */
    padding-left: 28px;    /* Make space for the box so text doesn't overlap */
    margin-bottom: 6px;    /* Spacing between items */
    line-height: 1.5;
}

/* DRAW THE EMPTY ORANGE BOX */
.requirements-list li::before {
    content: '';           /* Required for pseudo-elements to render */
    position: absolute;    /* Allows us to place it precisely */
    left: 0;               /* Stick it to the left side */
    top: 3px;              /* Adjust down slightly to align with text center */
    
    /* Define the box shape and color */
    width: 16px;
    height: 16px;
    border: 2px solid orange; /* Change 'orange' to your brand hex code if desired */
    background-color: transparent; /* Ensures it's empty inside */
    box-sizing: border-box; /* Keeps the size consistent */
    border-radius: 3px;     /* Slight rounding so it doesn't look like a 1990s website */
}

/* Link styling within the list */
.requirements-list a {
    text-decoration: none;
    color: #555;
    border-bottom: 1px dotted #999; /* A subtle dotted underline for links */
}

.requirements-list a:hover {
    color: orange; /* Highlight text orange on hover */
    border-bottom: 1px solid orange;
}
/* FAQ */
.faq { padding: 80px 0; background: var(--bg-alt); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.faq-item h4 { margin-bottom: 10px; font-size: 1.1rem; }
.faq-item p { color: var(--text-light); }

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col h3 { color: var(--primary); margin-bottom: 20px; }
.footer-col a { display: block; color: #aaa; margin-bottom: 10px; }
.footer-col a:hover { color: white; }

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   MOBILE & RESPONSIVE OPTIMIZATION
   (Updated Layouts for Phones/Tablets)
   ========================================= */

/* Tablet & Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        background-position: center center;
    }
    
    .pricing-grid, .feature-grid {
        gap: 20px; 
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    
    /* 1. Navbar: Horizontal Scrollable Menu */
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0;
    }

    .nav-links {
        display: flex; /* Override hidden status */
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 15px 0 5px;
        margin-top: 10px;
        border-top: 1px solid #f0f0f0;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links a {
        margin-left: 0;
        margin-right: 20px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .nav-links .btn {
        margin-left: 0;
    }


    /* 2. Hero Section */
    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
    }

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

    .hero-sub {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero .btn {
        width: 100%; /* Full width buttons for mobile */
    }

    /* 3. Spotlights (Dashboard/History) */
    .spotlight-layout, .spotlight-layout.reverse {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .dashboard-legend {
        display: inline-block;
        text-align: left;
    }

    /* 4. Grids (Features & Pricing) */
    .feature-grid, .pricing-grid, .faq-grid {
        /* Allow cards to fit on smaller screens (iPhone SE) */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing-card.popular {
        transform: scale(1);
        border-width: 2px;
        margin-bottom: 20px;
    }

    /* 5. Steps Section */
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 400px;
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 30px;
    }

    /* Force grids to single column on very small screens */
    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr; 
    }
    
    .requirements-footer {
        font-size: 0.8rem;
    }
}


/* =========================================
   SUPPORT PAGE STYLES
   ========================================= */

/* 1. Page Header (Smaller than Hero) */
.page-header {
    background: var(--brand-navy);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { color: white; margin-bottom: 10px; font-size: 2.5rem; }
.page-header p { color: #ccc; font-size: 1.1rem; }

/* 2. Layout Grid */
.support-section { padding: 60px 0; background: var(--bg-alt); }

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 3. Support Cards */
.support-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* Highlight the Firmware Card slightly */
.support-card.highlight-card {
    border-top: 4px solid var(--primary);
}

/* 4. File Download List */
.file-list { margin-top: 20px; }

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.file-item:last-child { border-bottom: none; }

.file-info strong { display: block; color: var(--brand-navy); }
.file-info span { font-size: 0.85rem; color: #999; }

/* Small buttons for downloads */
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

.note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    background: #fffcf5;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #fceecb;
}

/* 5. Documentation Links */
.doc-links { list-style: none; margin-top: 20px; }
.doc-links li { margin-bottom: 12px; }
.doc-links a {
    display: flex;
    align-items: center;
    color: var(--text);
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid transparent;
}
.doc-links a i { margin-right: 12px; color: var(--primary); font-size: 1.2rem;}
.doc-links a:hover {
    background: #f8f9fa;
    border-color: #eee;
    color: var(--brand-sky);
}

/* 6. Contact Form Styling */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.support-form .form-row {
    display: flex;
    gap: 20px;
}
.support-form .form-group { margin-bottom: 20px; flex: 1; }

.support-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-navy);
}

.support-form input, 
.support-form select, 
.support-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--brand-sky);
}

/* Mobile Responsiveness for Form */
@media (max-width: 600px) {
    .support-form .form-row { flex-direction: column; gap: 0; }
    .page-header h1 { font-size: 2rem; }
}