/* Dark Apple/Nintendo-Inspired Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Color Palette */
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #404040;
    --accent-gray: #606060;
    --white: #ffffff;
    --off-white: #f5f5f7;

    /* Brand Colors */
    --primary-blue: #007aff;
    --primary-purple: #5856d6;
    --secondary-green: #30d158;
    --secondary-orange: #ff9500;
    --accent-red: #ff3b30;

    /* Product Colors */
    --devops-color: #007aff;
    --daysaid-color: #30d158;
    --tavernbag-color: #ff9500;
    --vaultcontact-color: #5856d6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-heavy: 800;
    --font-weight-black: 900;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

.nav-logo span {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--off-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--dark-gray) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(88, 86, 214, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 40% 80%, rgba(48, 209, 88, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-black);
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--off-white);
    margin-bottom: 24px;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: var(--off-white);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.7;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--white), transparent);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--white);
}

.scroll-indicator span {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--off-white);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.product-preview {
    position: relative;
    width: 400px;
    height: 400px;
}

.preview-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preview-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.preview-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
}

.preview-card:nth-child(1) {
    top: 0;
    left: 0;
    animation: float 4s ease-in-out infinite;
}

.preview-card:nth-child(2) {
    top: 0;
    right: 0;
    animation: float 4s ease-in-out infinite 1s;
}

.preview-card:nth-child(3) {
    bottom: 0;
    left: 0;
    animation: float 4s ease-in-out infinite 2s;
}

.preview-card:nth-child(4) {
    bottom: 0;
    right: 0;
    animation: float 4s ease-in-out infinite 3s;
}

/* Product Sections */
.product-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    position: relative;
    background: var(--black);
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-content.reverse {
    direction: rtl;
}

.product-content.reverse>* {
    direction: ltr;
}

.product-info {
    animation: slideInLeft 0.8s ease-out;
}

.product-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.product-tagline {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 32px;
    opacity: 0.8;
}

.product-description {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: var(--off-white);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.feature {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--off-white);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.feature:hover {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out;
}

.product-showcase {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 2;
    position: relative;
    filter: brightness(1.1) contrast(1.1);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(40px);
    z-index: 1;
}

.devops-glow {
    background: radial-gradient(circle, var(--devops-color) 0%, transparent 70%);
}

.daysaid-glow {
    background: radial-gradient(circle, var(--daysaid-color) 0%, transparent 70%);
}

.tavernbag-glow {
    background: radial-gradient(circle, var(--tavernbag-color) 0%, transparent 70%);
}

.vaultcontact-glow {
    background: radial-gradient(circle, var(--vaultcontact-color) 0%, transparent 70%);
}

/* Section-specific styling */
.devops-section .product-tagline {
    color: var(--devops-color);
}

.daysaid-section .product-tagline {
    color: var(--daysaid-color);
}

.tavernbag-section .product-tagline {
    color: var(--tavernbag-color);
}

.vaultcontact-section .product-tagline {
    color: var(--vaultcontact-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Brand Statement Section */
.brand-statement {
    padding: 120px 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.brand-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.brand-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-content {
    animation: fadeInUp 1s ease-out;
}

.brand-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    opacity: 0.6;
}

.brand-title {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 50%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--dark-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    filter: invert(1);
}

.footer-title {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--off-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    transition: color 0.2s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--white);
    opacity: 1;
}

.footer-legal {
    text-align: center;
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
    color: var(--off-white);
    font-size: 14px;
    opacity: 0.6;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    .hero-container,
    .product-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .product-content.reverse {
        direction: ltr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-preview {
        width: 300px;
        height: 300px;
    }

    .preview-card {
        width: 100px;
        height: 100px;
    }

    .preview-card img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .hero-description,
    .product-description {
        font-size: 1.125rem;
    }

    .product-showcase {
        width: 250px;
        height: 250px;
    }

    .product-image {
        width: 150px;
        height: 150px;
    }

    .brand-statement {
        padding: 80px 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-preview {
        width: 250px;
        height: 250px;
    }

    .preview-card {
        width: 80px;
        height: 80px;
    }

    .preview-card img {
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 100px;
    }

    .product-actions {
        flex-direction: column;
        align-items: center;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-statement {
        padding: 60px 0;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --black: #000000;
        --white: #ffffff;
        --off-white: #ffffff;
    }

    .btn-secondary {
        border-width: 2px;
    }
}