* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --color-primary: #ff5c00;
    --color-primary-hover: #ff7433;
    --color-accent-dark: #2c2c2c;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-text-primary: #f1f1f1;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-light: rgba(255, 255, 255, 0.4);
    --color-divider: rgba(255, 255, 255, 0.1);
    --color-divider-strong: rgba(255, 255, 255, 0.15);
    
    /* Background Colors */
    --color-bg-dark: #1e1e1e;
    --color-bg-darker: #030507;
    --color-bg-card: rgba(45, 45, 45, 0.8);
    --color-bg-input: rgba(0, 0, 0, 0.4);
    
    /* Glow/Shadow Colors */
    --color-glow-primary: rgba(255, 92, 0, 0.4);
    --color-glow-primary-strong: rgba(255, 92, 0, 0.8);
    --color-shadow-light: rgba(0, 0, 0, 0.2);
    --color-shadow-medium: rgba(0, 0, 0, 0.28);
    --color-shadow-strong: rgba(0, 0, 0, 0.32);
}

::selection {
    background-color: var(--color-accent-dark);
    color: inherit;
}

::-moz-selection {
    background-color: var(--color-accent-dark);
    color: inherit;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

nav {
    padding: .7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-divider);
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.nav-cta {
    margin-right: 1.5rem;
}

.nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 10px var(--color-shadow-light);
}

.nav-cta-button:hover {
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px var(--color-shadow-medium);
}

.nav-cta-button:active {
    transform: none;
}

.logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.nav-items {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-right: 1.5rem;
}

.nav-items a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
}

.nav-items a:hover {
    opacity: 0.8;
}

.nav-items li {
    position: relative;
}

.dropdown-icon {
    margin-left: 0.3rem;
    font-size: 0.7rem;
    vertical-align: middle;
}

.btn-get-started {
    background-color: #ffffff;
    color: #2a2a2a;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-get-started:hover {
    background-color: #f0f0f0;
}

.nav-cart {
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
}

main {
    flex: 1;
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-product {
    display: flex;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.tracker-device {
    width: min(270px, 72vw);
    border-radius: 8px;
    padding: 12px 12px 14px;
    background: linear-gradient(165deg, #e6e6e6 0%, #d4d4d4 40%, #c7c7c7 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.tracker-screen-frame {
    border-radius: 10px;
    background: #030507;
    border: 2px solid #7f7f7f;
    padding: 14px;
}

.tracker-screen {
    background: #2c2c2c;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid #0e0e11;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding-top: 28px;
}

.tracker-eye {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #c9c9c6;
    --eye-x: 0px;
    --eye-y: 0px;
    transform: translate(var(--eye-x), var(--eye-y)) scaleY(1);
    transform-origin: center;
    animation: tracker-blink 4.2s infinite;
    transition: clip-path 0.24s ease;
}

.tracker-eye.is-idle {
    animation: none;
    clip-path: inset(0 0 50% 0);
}

@keyframes tracker-blink {
    0%,
    43%,
    47%,
    100% {
        transform: translate(var(--eye-x), var(--eye-y)) scaleY(1);
    }

    45% {
        transform: translate(var(--eye-x), var(--eye-y)) scaleY(0.14);
    }
}

.tracker-speaker {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 8px 8px;
    padding: 2px 6px 0;
}

.tracker-speaker span {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #090909;
}

.tracker-led-container {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
}

.tracker-led {
    width: 36px;
    height: 12px;
    border-radius: 8px;
    background: var(--color-primary);
    animation: led-pulse 2s ease-in-out infinite;
}

@keyframes led-pulse {
    0%,
    100% {
        opacity: 0.6;
        box-shadow: 0 0 8px var(--color-glow-primary), inset 0 0 4px rgba(255, 140, 0, 0.3);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 16px var(--color-glow-primary-strong), inset 0 0 8px rgba(255, 140, 0, 0.6);
    }
}

main h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.1;
}

.typewriter-title {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 1.15em;
}

.typewriter-text {
    display: inline-block;
}

.typewriter-cursor {
    width: 0.07em;
    height: 0.9em;
    margin-left: 0.12em;
    border-radius: 2px;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-glow-primary);
    animation: type-cursor-blink 0.9s steps(1, end) infinite;
}

.typewriter-title.is-complete .typewriter-cursor {
    animation-duration: 1.2s;
    opacity: 0.95;
}

@keyframes type-cursor-blink {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .typewriter-cursor {
        animation: none;
    }
}

main p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 2rem;
}

.newsletter-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem;
    background-color: var(--color-bg-card);
    border-radius: 20px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.newsletter-content p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

.newsletter-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 460px;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1.5rem;
    background-color: var(--color-bg-input);
    border: 1px solid var(--color-divider-strong);
    border-radius: 24px;
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--color-text-light);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-glow-primary);
}

.newsletter-input:-webkit-autofill,
.newsletter-input:-webkit-autofill:hover,
.newsletter-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-white);
    box-shadow: 0 0 0 1000px var(--color-bg-input-focus) inset;
    caret-color: var(--color-white);
    border: 1px solid var(--color-divider-strong);
    transition: background-color 9999s ease-in-out 0s;
}

.newsletter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: var(--color-primary);
    border: none;
    border-radius: 24px;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-button:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 6px 16px var(--color-glow-primary);
}

.newsletter-button:active {
    background-color: var(--color-primary-hover);
}

.newsletter-benefits {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    justify-content: center;
    width: 100%;
    margin-top: 0.55rem;
}

.newsletter-benefits span {
    display: flex;
    align-items: center;
}

.newsletter-benefits span::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--color-primary);
}

.newsletter-message {
    width: 100%;
    font-size: 0.82rem;
    color: var(--color-primary-hover);
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-2px);
    transition: max-height 0.2s ease, margin-top 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.newsletter-message.is-visible {
    max-height: 1.4em;
    margin-top: 0.35rem;
    opacity: 1;
    transform: translateY(0);
}

.newsletter-message.is-visible + .newsletter-benefits {
    margin-top: 0.5rem;
}

/* Footer Styles */
footer {
    padding: 4rem 2rem 0.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-icon {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.footer-description {
    margin-bottom: 2rem;
}

.product-title {
    color: #f1f1f1;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: rgb(255 255 255 / 55%);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff5c00;
}

.footer-bottom {
    padding-top: 0;
}

.copyright {
    color: rgb(255 255 255 / 55%);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.footer-policies {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.footer-policies a {
    color: rgb(255 255 255 / 55%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #ff5c00;
}

.footer-policies span {
    color: rgb(255 255 255 / 35%);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        margin-left: 0;
    }

    .nav-cta {
        margin-right: 0;
    }

    .nav-cta-button {
        padding: 0.45rem 0.85rem;
        font-size: 0.76rem;
    }

    main {
        padding: 3rem 1rem;
    }

    .hero-product {
        margin-bottom: 1.1rem;
    }

    .tracker-device {
        width: min(240px, 76vw);
        padding: 10px 10px 12px;
    }

    .tracker-screen {
        gap: 24px;
        padding-top: 22px;
    }

    .tracker-eye {
        width: 28px;
    }

    .tracker-speaker {
        gap: 7px;
    }

    main h1 {
        font-size: 2.35rem;
    }

    main p {
        font-size: 1rem;
    }

    .newsletter-section {
        padding: 3rem 1rem;
    }

    .newsletter-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .newsletter-content {
        width: 100%;
        text-align: left;
    }

    .newsletter-form {
        min-width: 100%;
    }

    .newsletter-benefits {
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
        justify-content: flex-start;
    }

    footer {
        padding: 3rem 1rem 0.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-logo-img {
        height: 25px;
        margin-bottom: 0;
    }

    .footer-logo {
        margin-bottom: 0.3rem;
    }

    .product-title {
        font-size: 0.75rem;
    }

    .product-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.6rem 0.8rem;
    }

    .nav-cta-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.72rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .hero-product {
        margin-bottom: 0.9rem;
    }

    .tracker-device {
        width: min(210px, 80vw);
        padding: 9px 9px 10px;
    }

    .tracker-screen-frame {
        padding: 10px;
    }

    .tracker-screen {
        gap: 24px;
        padding-top: 30px;
    }

    .tracker-eye {
        width: 40px;
    }

    .tracker-speaker {
        gap: 6px;
        padding: 2px 4px 0;
    }

    main h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    main p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .newsletter-section {
        padding: 2rem 1rem;
    }

    .newsletter-container {
        gap: 1rem;
        padding: 1rem;
        border-radius: 18px;
    }

    .newsletter-content h2 {
        font-size: 1.3rem;
    }

    .newsletter-content p {
        font-size: 0.85rem;
    }

    .newsletter-form {
        min-width: 100%;
        gap: 0.55rem;
    }

    .newsletter-input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .newsletter-button {
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }

    .newsletter-benefits {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        width: 100%;
    }

    .newsletter-benefits span {
        align-items: flex-start;
        line-height: 1.25;
    }

    footer {
        padding: 2rem 0.8rem 0.35rem;
    }

    .footer-logo {
        margin-bottom: 0.2rem;
    }


    .copyright {
        font-size: 0.7rem;
    }
}
