

/* Import the Poppins font family design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Colour palette – adjust these values to tune the look and feel */
:root {
    /* Core colour palette tuned for a monochrome black and white theme.
     * The primary colour is bright white for highlights and interactive
     * elements. A softer grey is used for hover states. Secondary and
     * muted colours provide the dark base tones used throughout the page.
     */
    --primary: #ffffff;
    /* White accent colour used on buttons, icons and highlighted text */
    --primary-dark: #cccccc;
    /* Light grey for hover states and subtle borders */
    --secondary: #111111;
    /* Deep charcoal for secondary surfaces such as cards and panels */
    --muted: #000000;
    /* Pure black background for the page body */
    --text: #d1d5db;
    /* Light grey text colour for high contrast on dark backgrounds */
    --text-muted: #6b7280;
    /* Muted grey for secondary text on dark backgrounds */
    --success: #22C55E;
    /* Green 500 */
    --warning: #FACC15;
    /* Yellow 400 */
    --danger: #EF4444;
    /* Red 500 */
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--muted);
}

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

ul {
    list-style: none;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    /* Primary button uses a white background with dark text for visibility */
    background-color: var(--primary);
    color: var(--muted);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--muted);
}

.btn-secondary {
    /* Secondary buttons are outlined and invert on hover */
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--muted);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--muted);
}

/* Header */
header {
    /* Make the navigation bar semi-transparent black with a subtle blur.
     * This replaces the previous light bar to better suit the dark theme. */
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/*
* Constrain the logo size in the header so that it doesn't overflow the
* navigation bar. Without setting explicit dimensions the logo will
* render at its natural size, which can be very large and break the layout.
* The margin creates space between the icon and the site name.
*/
header .brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.5rem;
}

/*
* Ensure the logo and site name within the header sit on the same
* horizontal line and are vertically centered. Without explicitly
* setting display:flex on the brand container, the default inline
* behaviour can sometimes misalign the image and text, especially
* across different browsers. This rule makes the logo/text pair
* consistently aligned and keeps a small gap between them.
*/
header .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header nav {
    display: flex;
    gap: 1rem;
}

header nav a {
    font-weight: 500;
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

header nav a:hover {
    /* Lighten link on hover with a subtle translucent white overlay */
    background-color: rgba(255, 255, 255, 0.08);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    padding: 5rem 0;
}

.hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/*
* On wider screens, prevent the hero headline from wrapping onto
* multiple lines. This keeps "Premium Accounts at Unbeatable
* Prices" on a single line, aligning neatly with the adjacent form.
* On smaller screens the default wrapping behaviour remains so that
* text can adapt to narrow viewports without overflowing.
*/
@media (min-width: 1024px) {
    .hero h1 {
        white-space: nowrap;
    }
}

/* Stats section */
.stats {
    /* Darken the stats section to blend into the overall black theme */
    background-color: var(--secondary);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat .label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Services section */
.services {
    background-color: var(--muted);
    padding: 4rem 0;
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.service-card .logo {
    font-size: 2rem;
    margin-right: 0.75rem;
}

.service-card .title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.service-card .price {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-card .verified {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.service-card .verified svg {
    width: 1rem;
    height: 1rem;
    color: var(--success);
}

/* Features section */
.features {
    /* Dark background for features section */
    background-color: var(--secondary);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    /* Transparent background with a white border creates a glowing effect */
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

/* Ensure feature titles and descriptions use appropriate colours */
.feature-title {
    color: var(--primary);
}

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    /* Darken the testimonials section to align with the black theme */
    background-color: var(--secondary);
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    /* Stars adopt the primary white colour */
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonial-user .avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Marketplace page styles */
.marketplace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.marketplace-header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.marketplace-header nav a {
    font-weight: 500;
    color: var(--text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

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

.marketplace-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.marketplace-header .user-info span {
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    background-color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
}

.product-card .badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.25rem;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
    background: var(--primary);
    color: var(--muted);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.product-card .product-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.product-card .product-header img {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.product-card .product-title {
    font-weight: 600;
    font-size: 1rem;
}

.product-card .product-rating {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card .plan-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.75rem;
}

.plan-switch .toggle {
    position: relative;
    width: 40px;
    height: 20px;
    background: #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
}

.plan-switch .toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    transition: left 0.2s ease;
}

.plan-switch input:checked+.toggle::after {
    left: 22px;
}

/* Highlight the toggle track when yearly plan is selected */
.plan-switch input:checked+.toggle {
    background: var(--primary);
}

.account-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.account-type label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-card .price .original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .features {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--text);
}

.product-card .features li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.product-card .features li svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--success);
}

.product-card button {
    margin-top: 1rem;
    width: 100%;
}

/* Success page */
.success-container {
    max-width: 600px;
    margin: 3rem auto;
    background-color: var(--secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.success-container h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-container p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.otp-section {
    margin-top: 2rem;
    text-align: left;
}

.otp-section button {
    margin-top: 0.5rem;
}

.otp-section pre {
    background-color: var(--secondary);
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    overflow-x: auto;
    color: var(--text);
}

/* CTA section */
.cta {
    /* Use a dark background for the call‑to‑action section to maintain the monochrome theme */
    background-color: var(--secondary);
    color: var(--text);
    text-align: center;
    padding: 4rem 1rem;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Override button styles in the call‑to‑action for the dark theme. The
 * buttons invert on hover: outlined by default and filled on hover.
 */
.cta .btn-secondary,
.cta .btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta .btn-secondary:hover,
.cta .btn-outline:hover {
    background-color: var(--primary);
    color: var(--muted);
}

@media (min-width: 640px) {
    .cta h2 {
        font-size: 2.5rem;
    }

    .cta .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Footer */
footer {
    background-color: var(--muted);
    padding: 3rem 1rem;
}

/* ---------------------------------------------------------------------- */
/* Custom overrides for dark hero, preloader, animations and contact section */
/* These rules are appended to ensure they override earlier definitions. */

/* Preloader styles: dark backdrop with stroke‑path animation */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#preloader .loader-svg {
    width: 80px;
    height: 80px;
    animation: rotate 2s linear infinite;
}

#preloader .loader-path {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: dash 2s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 250;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -250;
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Fade up animation used throughout sections */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulsing glow animation for highlighted text */
@keyframes glow {
    from {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    to {
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
    }
}

/* Dark hero styling */
.hero {
    position: relative;
    /* Override the default gradient background with a solid black backdrop. Using the shorthand
     * background property ensures any previously defined background-image or gradient is removed. */
    background: var(--muted);
    color: var(--text);
    padding: 5rem 0;
    overflow: hidden;
}

.hero h1 {
    color: var(--primary);
}

/* Highlighted word in the hero headline is italic and emits a soft glow.
 * The text uses the primary colour (white) and a subtle pulsing text-shadow animation. */
.hero h1 span {
    color: var(--primary);
    font-style: italic;
    animation: glow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 50%;
    max-width: 600px;
}

.hero-form {
    flex: 1 1 350px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

.hero-form h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.hero-form .input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Slightly lighter glass background so placeholder text is visible */
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    /* Ensure consistent border and shadow transitions when focusing fields */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Highlight the input group when any field inside gains focus. Without
* this, browsers can render a hairline around the focused input,
* especially on mobile. The subtle inset box‑shadow removes the
* appearance of a white seam while still indicating focus to the user. */
.hero-form .input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25) inset;
}

.hero-form .input-group i {
    color: var(--secondary);
}

.hero-form input,
.hero-form textarea {
    flex: 1 1 auto;
    /*
* Use a transparent background for the text inputs so they blend with the
* dark panel. Remove borders and outlines to prevent white lines from
* appearing when users type. Set the caret colour to the primary hue.
*/
    background-color: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    caret-color: var(--primary);
    box-shadow: none;
    /* Prevent light seams around the text field by clipping the
* background to the padding area. Without this, some browsers
* display a faint white line along the edges of transparent inputs. */
    background-clip: padding-box;
}

.hero-form textarea {
    resize: none;
}

/*
* Remove default focus outlines and shadows that can manifest as
* white lines inside dark form fields. Without these rules some
* browsers (notably mobile WebKit) show a visible highlight
* around the input when text is entered. The box-shadow is set to
* none on focus to override any native styling.
*/
.hero-form input:focus,
.hero-form textarea:focus {
    outline: none;
    box-shadow: none;
}

/*
* Address the autofill background colour in WebKit browsers. When a
* browser autofills a field it can apply a white background or
* yellowish overlay. By resetting the box-shadow and text fill
* colour we ensure the autofilled text blends with the dark theme.
*/
.hero-form input:-webkit-autofill,
.hero-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0) inset;
    -webkit-text-fill-color: white;
}

.hero-form button {
    width: 100%;
    padding: 0.75rem;
    /* Use a white button with dark text to stand out against the dark panel */
    background: var(--primary);
    color: var(--muted);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.hero-form button:hover {
    transform: scale(1.08);
    background: var(--primary-dark);
    color: var(--muted);
}

.hero-form button:active {
    transform: scale(0.95);
}

.hero canvas,
#wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-form {
        width: 100%;
    }
}

/* Contact section styling */
.contact {
    background-color: var(--secondary);
    color: var(--text);
    padding: 4rem 1rem;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-form {
    flex: 1 1 350px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

.contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-form .input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.contact-form .input-group i {
    color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
    flex: 1 1 auto;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    resize: none;
    box-shadow: none;
}

.contact-form textarea {
    height: 120px;
}

/* Prevent white focus outlines and autofill backgrounds in contact form */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: none;
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0) inset;
    -webkit-text-fill-color: white;
}

.contact-form button {
    width: 100%;
    padding: 0.75rem;
    /* White button with dark text for contrast against dark form */
    background: var(--primary);
    color: var(--muted);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.contact-form button:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
    color: var(--muted);
}

.contact-form button:active {
    transform: scale(0.97);
}

/* Custom placeholder colour for dark forms */
.hero-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }

    .contact-form {
        width: 100%;
    }
}

/* Global button zoom effect for other buttons */
.btn {
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.08);
}

.btn:active {
    transform: scale(0.95);
}

/* ---------------------------------------------------------------------- */
/* Internal pages: generic hero and content styling */

/* A dark hero banner for secondary pages such as FAQs and policies */
.page-hero {
    background-color: #0e1e40;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Generic page content wrapper */
.page-content,
.faqs,
.offers,
.comparison {
    padding: 4rem 1rem;
    background-color: var(--muted);
    color: var(--text);
}

/* ======================================================================
* Hero form input seam overrides
*
* Despite earlier fixes, some browsers still render faint white seams
* around form fields when they are focused or contain text. The
* following rules completely override native styles, remove inset
* shadows and ensure the backgrounds blend seamlessly with the dark
* glass card. These overrides are declared at the end of the
* stylesheet to take precedence over previous definitions. */

/* Reset the input group border and background. The transform and
* backface-visibility hacks prevent sub-pixel rendering seams on
* high-density displays. */
/* Override group appearance to better clip browser autofill overlays. */
.hero-form .input-group {
    background-color: rgba(255, 255, 255, 0.08);
    /* Slightly higher alpha on border prevents a faint white seam on dark
* backgrounds while still providing a visible focus state. */
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: border-color 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Clip the browser autofill paint layer to prevent seams around
* the edges when suggestions are accepted. Without this, Chrome
* may paint outside the container border radius leaving a visible line. */
    overflow: hidden;
    /* Use a consistent radius that matches the hero card so that the input
* element and its autofill overlay are clipped correctly. */
    border-radius: 0.25rem;
}

/* On focus, only adjust the border colour; explicitly remove any box
* shadow so that browsers do not draw an inner white line. */
.hero-form .input-group:focus-within {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: none !important;
}

/* Ensure inputs use no native appearance, have transparent backgrounds
* clipped to the padding box and have an explicit transparent border
* to prevent hairline seams. The caret and text colours are set to
* white for consistency. */
.hero-form input,
.hero-form textarea {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    /* Inherit the radius from the parent input-group to ensure the
* autofill background is clipped consistently. Use an explicit
* transparent border to prevent sub-pixel seams. */
    border-radius: inherit;
    border: 1px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff;
    caret-color: #ffffff;
}

/* Match the autofill background to the dark card and reset autofill text
* colour to white. Without this, WebKit may apply a bright yellow
* overlay to autofilled fields which looks like a white seam. */
/* WebKit/Blink autofill. When a saved credential or suggestion is
* selected, the browser paints a white/yellow overlay over the input.
* These selectors reset the overlay to match the dark card and remove
* any default box shadows that can appear as a seam. Include all
* pseudo-classes so the rule applies consistently. */
.hero-form input:-webkit-autofill,
.hero-form input:-webkit-autofill:hover,
.hero-form input:-webkit-autofill:focus,
.hero-form input:-webkit-autofill:active,
.hero-form textarea:-webkit-autofill,
.hero-form textarea:-webkit-autofill:hover,
.hero-form textarea:-webkit-autofill:focus,
.hero-form textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    transition: background-color 9999s ease-out 0s;
}

/* Firefox autofill styling */
.hero-form input:-moz-autofill,
.hero-form textarea:-moz-autofill {
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
    -moz-text-fill-color: #ffffff !important;
    border: 1px solid transparent !important;
}

/* FAQ styling */
.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Offers grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.offer-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
}

.offer-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.offer-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.comparison-table th {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9fafb;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

footer p,
footer li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

footer .copyright {
    border-top: 1px solid #E5E7EB;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-container h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-actions .checkbox {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-actions .checkbox input {
    margin-right: 0.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.password-requirements .met {
    color: var(--success);
}

/* Responsive design improvements */

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

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

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-form {
        width: 100%;
        margin-top: 1rem;
    }

    .stats-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    header .brand img {
        width: 32px;
        height: 32px;
    }

    header nav a {
        padding: 0.25rem 0;
    }

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

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

@media (max-width: 640px) {
    header nav a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Icons for headings */
.features h2::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f058";
    margin-right: 0.5rem;
    color: var(-primary);
}

.testimonials h2::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f075";
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Reset + basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body.bg-muted {
    background-color: #f8f9fa;
    color: #212529;
}

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

header nav {
    display: flex;
    gap: 1rem;
}

header nav a {
    font-weight: 500;
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

header nav a:hover {
    background-color: var(--secondary);
}

/* Ensure feature and testimonial icons have consistent size and colour */
.feature-icon i,
.testimonial-user .avatar i {
    font-size: 2rem;
    color: var(--primary);
}

/* ----------------------------------------------------------------------
 * Dark theme global overrides and animations
 *
 * The rules below ensure the entire site adopts a cohesive dark theme.
 * Background colours are darkened, text colours are lightened, and
 * subtle animations add a dynamic feel. These overrides are appended at
 * the end of the stylesheet so they take precedence over earlier styles.
 */

/* Set the default page background and text colours */
body {
    background-color: var(--muted);
    color: var(--text);
}

/* Make the header translucent dark instead of light */
header {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav a {
    color: var(--text);
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Darken the backgrounds of major sections */
.stats,
.features,
.testimonials,
footer {
    background-color: var(--muted);
    color: var(--text);
}

/* Lighten muted copy and italicise descriptive text */
.stat .label,
.feature-desc,
.testimonial-text,
footer p,
footer li a {
    color: var(--text-muted);
    font-style: italic;
}

/* ----------------------------------------------------------------------
 * Black & white theme refinements
 *
 * These overrides adjust the hero background, CTA section and button styles
 * to better match a minimal black and white colour scheme while preserving
 * a touch of purple for highlights.
 */

/* Hero adopts the global muted background and appropriate text colours */
.hero {
    background: var(--muted);
    color: var(--text);
}

.hero h1 {
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
}

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

/* CTA section becomes dark with muted copy and accent buttons */
.cta {
    background-color: var(--secondary);
    color: var(--text);
}

.cta h2 {
    color: var(--text);
}

.cta p {
    color: var(--text-muted);
    font-style: italic;
}

.cta .btn-primary {
    background-color: var(--primary);
    color: var(--muted);
}

.cta .btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--muted);
}

.cta .btn-secondary,
.cta .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta .btn-secondary:hover,
.cta .btn-outline:hover {
    background-color: var(--primary);
    color: var(--muted);
}

/* Global secondary button becomes transparent with border for dark theme */
.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--muted);
}

/* Outline button style refinement */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--muted);
}

/* Italicise hero paragraph for emphasis */
.hero p {
    font-style: italic;
}

/* Highlight key headings and numbers with the primary colour */
.stat .number,
.feature-title,
.testimonial-user span,
footer h4 {
    color: var(--primary);
}

/* Provide semi‑transparent surfaces for feature and testimonial cards */
.feature,
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Add a soft pulsing glow to icons and stars */
@keyframes pulseShadow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.9);
    }
}

.feature-icon,
.testimonial-stars i {
    animation: pulseShadow 4s ease-in-out infinite;
}

/* Floating animation for call-to-action buttons and form buttons */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

.cta .btn,
.hero-form button {
    animation: float 5s ease-in-out infinite;
}

/* Footer link hover colour for better contrast */
footer a:hover {
    color: var(--primary);
}

/* ----------------------------------------------------------------------
 * Additional italic and animation tweaks inspired by BytoBox
 *
 * The highlighted portion of the hero headline is italicised and given a
 * subtle glowing animation to draw attention in a style similar to the
 * "Instant Access" text on the reference site. The call‑to‑action
 * tagline is also italicised for emphasis.
 */

/* Apply italic and glowing animation to the hero headline's span */
.hero h1 span {
    font-style: italic;
    animation: glowText 4s ease-in-out infinite;
}

@keyframes glowText {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.9);
    }
}

/* Italicise the call‑to‑action tagline beneath the headline */
.cta p {
    font-style: italic;
}