/* DEXTRO Website Styles */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Design System */
:root {
    --background: hsl(230, 35%, 7%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(230, 35%, 9%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(230, 35%, 7%);
    --secondary: hsl(230, 20%, 15%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --accent: hsl(260, 85%, 57%);
    --accent-foreground: hsl(210, 40%, 98%);
    --border: hsl(230, 20%, 18%);
    --tech-blue: hsl(217, 91%, 60%);
    --tech-purple: hsl(260, 85%, 57%);
    --tech-cyan: hsl(180, 100%, 70%);
    --gradient-hero: linear-gradient(135deg, hsl(217, 91%, 60%, 0.9), hsl(260, 85%, 57%, 0.9));
    --gradient-text: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(260, 85%, 57%));
    --gradient-bg: linear-gradient(135deg, hsl(230, 35%, 7%), hsl(230, 25%, 9%));
    --glow-primary: 0 0 40px hsl(217, 91%, 60%, 0.3);
    --nav-blur: hsl(230, 35%, 7%, 0.8);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gradient-bg);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Gradient text effect */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: var(--nav-blur);
    border-bottom: 1px solid hsl(230, 20%, 18%, 0.2);
}

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 1.5rem;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: hsl(210, 40%, 80%);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: hsl(230, 35%, 7%, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 500;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(210, 40%, 80%);
    max-width: 1000px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

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

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Floating elements */
.floating-element {
    position: absolute;
    border-radius: 0.5rem;
}

.element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 3rem;
    height: 3rem;
    background: hsl(217, 91%, 60%, 0.2);
    animation: pulse 2s infinite;
}

.element-2 {
    top: 10rem;
    right: 5rem;
    width: 2rem;
    height: 2rem;
    background: hsl(260, 85%, 57%, 0.3);
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.element-3 {
    bottom: 10rem;
    left: 5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: hsl(180, 100%, 70%, 0.25);
    animation: pulse 2s infinite 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
}

.btn-hero {
    background: var(--gradient-hero);
    color: var(--foreground);
    box-shadow: var(--glow-primary);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary), 0 10px 20px hsl(217, 91%, 60%, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid hsl(210, 40%, 80%, 0.2);
}

.btn-outline:hover {
    background: hsl(210, 40%, 98%, 0.1);
    border-color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

.play-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .play-icon {
    transform: scale(1.1);
}

/* Section styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: hsl(210, 40%, 70%);
    max-width: 800px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 6rem 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: hsl(230, 35%, 9%, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(230, 20%, 18%);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px hsl(230, 35%, 7%, 0.3);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-icon .icon {
    width: 3rem;
    height: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.feature-description {
    color: hsl(210, 40%, 70%);
    line-height: 1.6;
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 6rem 1.5rem;
    background: hsl(230, 35%, 9%, 0.2);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.protocol-badge {
    background: hsl(230, 35%, 9%, 0.7);
    border: 1px solid hsl(230, 20%, 18%);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.protocol-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.protocol-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.protocol-description {
    font-size: 0.75rem;
    color: hsl(210, 40%, 60%);
}

/* Industries Section */
.industries-section {
    padding: 6rem 1.5rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.industry-card {
    background: hsl(230, 35%, 9%, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(230, 20%, 18%);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.industry-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.industry-icon .icon {
    width: 3rem;
    height: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.industry-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.industry-description {
    color: hsl(210, 40%, 70%);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.industry-features {
    list-style: none;
    padding: 0;
}

.industry-features li {
    color: hsl(210, 40%, 80%);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.industry-features li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 1.5rem;
    background: hsl(230, 35%, 9%, 0.1);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: hsl(230, 35%, 9%, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(230, 20%, 18%, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    color: hsl(210, 40%, 80%);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 1.5rem;
    background: hsl(230, 35%, 9%, 0.2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-card {
    background: hsl(230, 35%, 9%, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(230, 20%, 18%, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(210, 40%, 80%);
    margin-bottom: 0.5rem;
}

.form-input {
    background: hsl(230, 20%, 18%);
    border: 1px solid hsl(230, 20%, 18%);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(217, 91%, 60%, 0.2);
}

.form-input::placeholder {
    color: hsl(210, 40%, 60%);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-benefits {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(230, 20%, 18%, 0.2);
}

.benefits-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: hsl(210, 40%, 70%);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.contact-description {
    color: hsl(210, 40%, 70%);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: hsl(230, 35%, 9%, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(230, 20%, 18%, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: var(--primary);
    margin-top: 0.25rem;
}

.contact-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.contact-method {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.contact-value {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-hours {
    font-size: 0.875rem;
    color: hsl(210, 40%, 60%);
}

.enterprise-card {
    background: linear-gradient(to right, hsl(217, 91%, 60%, 0.1), hsl(260, 85%, 57%, 0.1));
    border: 1px solid hsl(217, 91%, 60%, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.enterprise-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.enterprise-description {
    font-size: 0.875rem;
    color: hsl(210, 40%, 70%);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: hsl(230, 35%, 9%, 0.3);
    border-top: 1px solid hsl(230, 20%, 18%, 0.2);
}

.newsletter-section {
    padding: 3rem 1.5rem;
    border-bottom: 1px solid hsl(230, 20%, 18%, 0.2);
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.newsletter-description {
    color: hsl(210, 40%, 70%);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    background: hsl(230, 20%, 18%);
    border: 1px solid hsl(230, 20%, 18%);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--foreground);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-main {
    padding: 3rem 1.5rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

.footer-company {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(210, 40%, 70%);
    line-height: 1.6;
}

.footer-column-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsl(210, 40%, 70%);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid hsl(230, 20%, 18%, 0.2);
    padding: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright {
    font-size: 0.875rem;
    color: hsl(210, 40%, 60%);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    font-size: 0.875rem;
    color: hsl(210, 40%, 60%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Utilities */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.125rem;
    }
}

/* Form validation styles */
.form-input:invalid {
    border-color: hsl(0, 84%, 60%);
}

.form-input:valid {
    border-color: hsl(120, 84%, 60%);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.faq-question:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}