/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body, #main {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Theme Switching */
:root {
    /* Dark Theme (Default) */
    --bg-primary: rgb(9, 9, 13);
    --bg-secondary: rgba(89, 89, 89, 0.6);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    --bg-button: rgba(255, 255, 255, 0.2);
    --bg-button-hover: rgba(255, 255, 255, 0.3);
    --bg-floating: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgb(186, 186, 186);
    --text-button: rgb(0, 0, 0);
    
    --border-primary: rgba(238, 238, 238, 0.23);
    --border-secondary: rgba(255, 255, 255, 0.22);
    --border-input: rgba(238, 238, 238, 0.15);
    
    --shadow-primary: rgba(0, 0, 0, 0.2);
    --shadow-secondary: rgba(0, 0, 0, 0.25);
    
    --gradient-start: rgb(255, 255, 255);
    --gradient-end: rgb(138, 138, 138);
    
    /* Starfield colors - Dark Theme */
    --star-color: #FFF;
    --star-color-light: rgba(255, 255, 255, 0.8);
    --star-color-dim: rgba(255, 255, 255, 0.4);
    --star-color-faint: rgba(255, 255, 255, 0.2);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: rgb(255, 255, 255);
    --bg-secondary: rgba(240, 240, 240, 0.8);
    --bg-tertiary: rgba(0, 0, 0, 0.05);
    --bg-button: rgba(0, 0, 0, 0.1);
    --bg-button-hover: rgba(0, 0, 0, 0.2);
    --bg-floating: rgba(0, 0, 0, 0.05);
    
    --text-primary: rgb(0, 0, 0);
    --text-secondary: rgb(80, 80, 80);
    --text-button: rgb(255, 255, 255);
    
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.1);
    --border-input: rgba(0, 0, 0, 0.1);
    
    --shadow-primary: rgba(0, 0, 0, 0.1);
    --shadow-secondary: rgba(0, 0, 0, 0.15);
    
    --gradient-start: rgb(0, 0, 0);
    --gradient-end: rgb(80, 80, 80);
    
    /* Starfield colors - Light Theme */
    --star-color: #000;
    --star-color-light: rgba(0, 0, 0, 0.8);
    --star-color-dim: rgba(0, 0, 0, 0.4);
    --star-color-faint: rgba(0, 0, 0, 0.2);
}

body {
    background: var(--bg-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6, p, figure {
    margin: 0;
}

/* Main Container */
#main {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 2rem 2rem 2rem 2rem;
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    box-sizing: border-box;
}

/* Top Bar */
.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 5px 0;
    margin-top: 0;
}

.logo-and-download {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.logo-background {
    width: 100%;
    height: 100%;
}

.logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Theme Switch */
.theme-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch-container.bottom-right {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}



.theme-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; /* Reduced from 40px by 35% */
    height: 26px; /* Reduced from 40px by 35% */
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-switch:hover {
    background: var(--bg-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-primary);
}

.theme-switch:active {
    transform: translateY(0) scale(0.95);
}

.theme-switch:focus {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    color: var(--text-primary);
    filter: drop-shadow(0 1px 2px var(--shadow-primary));
    width: 10px; /* Reduced from 16px by 35% */
    height: 10px; /* Reduced from 16px by 35% */
}

.theme-icon.sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.theme-icon.moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.theme-icon.system-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Theme-specific icon states */
[data-theme="light"] .theme-icon.sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

[data-theme="light"] .theme-icon.moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="system"] .theme-icon.system-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="system"] .theme-icon.sun-icon,
[data-theme="system"] .theme-icon.moon-icon {
    opacity: 0;
}

/* Theme switch pulse animation */
.theme-switch.pulse {
    animation: themePulse 0.3s ease-in-out;
}

@keyframes themePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    text-align: center;
    min-width: fit-content;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
}

.button:active {
    transform: translateY(0) scale(0.98);
}

/* Shimmer effect for all buttons */
.button.shimmer::before {
    animation: shimmer 3s infinite;
}

[data-theme="light"] .button.shimmer::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.4),
        transparent
    );
}

/* Button entrance animation with staggered delays */
.button {
    animation: buttonEntrance 0.6s ease-out;
}

.caysra-button {
    animation-delay: 0.1s;
}

.blog-button {
    animation-delay: 0.2s;
}

.contact-button {
    animation-delay: 0.3s;
}

.submit-button {
    animation-delay: 0.4s;
}

/* Button text animation */
.button .button-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover .button-text {
    transform: scale(1.05);
}

.caysra-button {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.blog-button {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.button-text {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.button-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.button:hover .button-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Twitter and Button Section */
.twitter-and-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

/* Removed megaphone link styles - replaced with duplicate logo */

/* Removed megaphone icon styles */

/* Removed megaphone icon SVG styles */

/* Both logos now use the same .logo class for perfect consistency */

/* Logo link styling for clickable duplicate logo */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 36px; /* Match logo height exactly */
    width: 36px; /* Match logo width exactly */
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:hover .logo {
    border-color: var(--border-primary);
    box-shadow: 0 2px 8px var(--shadow-primary);
}

/* Ensure perfect button alignment with logos */
.caysra-button,
.blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* Consistent height for both buttons */
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    text-align: center;
    min-width: fit-content;
    box-sizing: border-box;
}

/* Ensure logos and buttons are perfectly aligned */
.logo-and-download,
.twitter-and-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 44px; /* Match button height for perfect alignment */
}

/* Removed megaphone hover styles */

/* Headings and Form */
.headings-and-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.title-and-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.subtitle {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.main-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: transparent;
    background-image: linear-gradient(87deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    max-width: 100%;
}

.description {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    transition: color 0.3s ease;
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 500px;
    min-width: 400px;
    box-sizing: border-box;
}

.waitlist-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    align-items: center; /* Ensure proper vertical alignment */
    box-sizing: border-box;
}

.email-input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    width: 200px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--border-input);
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't affect width calculation */
    overflow: visible; /* Allow content to be visible */
    word-wrap: break-word; /* Allow long words to break */
    resize: none; /* Prevent manual resizing */
    /* Ensure consistent sizing across all states */
    height: auto; /* Let height adjust naturally to content */
    line-height: 1.2; /* Consistent line height */
    vertical-align: middle; /* Proper vertical alignment */
}

.email-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.email-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--border-primary);
    /* Maintain exact same dimensions during focus */
    width: 200px;
    min-width: 200px;
    max-width: 300px;
}

/* Email input validation states */
.email-input.error {
    box-shadow: inset 0 0 0 2px #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
    /* Maintain exact same dimensions during error state */
    width: 200px;
    min-width: 200px;
    max-width: 300px;
}

.email-input.valid {
    box-shadow: inset 0 0 0 2px #51cf66;
    background: rgba(81, 207, 102, 0.05);
    /* Maintain exact same dimensions during valid state */
    width: 200px;
    min-width: 200px;
    max-width: 300px;
}

/* Field validation messages */
.field-error {
    color: #ff6b6b !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: block !important;
    text-align: left !important;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    width: 100%; /* Ensure full width */
    clear: both; /* Clear any floating elements */
}

.field-success {
    color: #51cf66 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: block !important;
    text-align: left !important;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    width: 100%; /* Ensure full width */
    clear: both; /* Clear any floating elements */
}

/* Main error and success messages */
.error-message,
.success-message {
    width: 100%;
    margin-top: 15px;
    clear: both;
}

/* Validation messages container */
.validation-messages {
    width: 100%;
    margin-top: 15px;
    min-height: 20px; /* Ensure consistent spacing even when empty */
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-popup.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.success-popup.show .popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 20px 0 20px;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.popup-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.popup-body {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: popupIconBounce 0.6s ease-out;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.popup-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

@keyframes popupIconBounce {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Bouncing effect for the hiring button */
.blog-button.bounce {
    animation: hiringBounce 0.6s ease-in-out;
}

@keyframes hiringBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(-2px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.submit-button {
    padding: 14px 20px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    background: var(--text-primary);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: fit-content;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-secondary);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-secondary);
}

/* Shimmer effect */
.submit-button.shimmer::before {
    animation: shimmer 3s infinite;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
}

[data-theme="light"] .submit-button.shimmer::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.6),
        transparent
    );
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced hover effects */
.submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-secondary);
}

.submit-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px var(--shadow-secondary);
}

/* Button entrance animation */
.submit-button {
    animation: buttonEntrance 0.6s ease-out;
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glow effect */
.submit-button.glow {
    box-shadow: 
        0 4px 15px var(--shadow-secondary),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .submit-button.glow {
    box-shadow: 
        0 4px 15px var(--shadow-secondary),
        0 0 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1);
}

/* Button text animation */
.submit-button .button-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover .button-text {
    transform: scale(1.05);
}

/* Loading state with animation */
.submit-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
}

/* Focus state */
.submit-button:focus {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
    box-shadow: 
        0 4px 15px var(--shadow-secondary),
        0 0 0 4px rgba(0, 153, 255, 0.1);
}

/* Floating Info */
.floating-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    background-color: var(--bg-floating);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 650px;
    transition: all 0.3s ease;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.info-text {
    flex: 1;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: center;
    transition: color 0.3s ease;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-button);
    border-radius: 100px;
    text-decoration: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    text-align: center;
    min-width: fit-content;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    background-color: var(--bg-button-hover);
    transform: translateY(-2px) scale(1.02);
}

.contact-button:active {
    transform: translateY(0) scale(0.98);
}

/* Shimmer effect for contact button */
.contact-button.shimmer::before {
    animation: shimmer 3s infinite;
}

[data-theme="light"] .contact-button.shimmer::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.4),
        transparent
    );
}

/* Contact button entrance animation */
.contact-button {
    animation: buttonEntrance 0.6s ease-out;
}

.contact-button .button-text {
    color: inherit;
    font-size: inherit;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-button:hover .button-text {
    transform: scale(1.05);
}

.contact-button .button-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-button:hover .button-icon {
    opacity: 1;
    transform: scale(1.1);
}

.highlight {
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.4;
    transform: rotate(80deg);
}

.highlight-icon {
    width: 30px;
    height: 30px;
    background-color: var(--bg-button);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-content {
        padding: 0.5rem 1rem 1rem 1rem;
    }
    
    .top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        text-align: left;
        padding: 3px 0;
        width: 100%;
    }
    
    .logo-and-download {
        justify-content: flex-start;
        gap: 12px;
        height: 44px; /* Maintain consistent height on mobile */
    }
    
    .twitter-and-button {
        justify-content: flex-end;
        gap: 12px;
        height: 44px; /* Maintain consistent height on mobile */
    }
    
    .headings-and-form {
        gap: 1rem;
        margin-top: 0;
    }
    
    .main-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    
    .description {
        font-size: 15px;
    }
    
    .waitlist-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .email-input {
        max-width: 100%; /* Allow full width on mobile */
        min-width: 0; /* Reset min-width for mobile */
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .floating-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    /* Theme switch mobile adjustments */
    .theme-switch-container.bottom-right {
        bottom: 20px;
        right: 20px;
    }
    
    .theme-switch {
        width: 24px; /* Slightly smaller on mobile */
        height: 24px;
    }
    
    .theme-icon {
        width: 9px; /* Slightly smaller on mobile */
        height: 9px;
    }
    
    /* Popup mobile adjustments */
    .popup-content {
        max-width: 90%;
        width: 95%;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-message {
        font-size: 14px;
    }
    
    .popup-icon {
        font-size: 40px;
    }
    

}

@media (max-width: 480px) {
    .page-content {
        padding: 0.5rem 1rem 1rem 1rem;
    }
    
    .top-bar {
        padding: 2px 0;
    }
    
    .logo-and-download {
        gap: 10px;
        height: 44px; /* Maintain consistent height on small mobile */
    }
    
    .twitter-and-button {
        gap: 10px;
        height: 44px; /* Maintain consistent height on small mobile */
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .description {
        font-size: 14px;
    }
    
    /* Theme switch small mobile adjustments */
    .theme-switch-container.bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .theme-switch {
        width: 22px; /* Even smaller on very small screens */
        height: 22px;
    }
    
    .theme-icon {
        width: 8px; /* Even smaller on very small screens */
        height: 8px;
    }
    
    /* Popup small mobile adjustments */
    .popup-content {
        width: 98%;
        margin: 10px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-message {
        font-size: 13px;
    }
    
    .popup-icon {
        font-size: 36px;
    }
    
    .popup-body {
        padding: 0 20px 25px 20px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Focus States for Accessibility */
.email-input:focus,
.submit-button:focus,
.button:focus,
.contact-button:focus,
.theme-switch:focus {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
}

/* Loading States */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .button,
    .contact-button,
    .submit-button,
    .theme-switch {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Efficient Starfield with 15,000 Stars - Bouncing Animation */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--star-color);
    border-radius: 50%;
    animation: bounceStars 20s ease-in-out infinite;
}

.star:nth-child(3n) {
    background: var(--star-color-light);
    animation-duration: 25s;
}

.star:nth-child(3n+1) {
    background: var(--star-color-dim);
    animation-duration: 30s;
}

.star:nth-child(3n+2) {
    background: var(--star-color-faint);
    animation-duration: 35s;
}

/* Additional star styling for better performance */
.star {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Bouncing Star Animation */
@keyframes bounceStars {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 30px);
    }
    50% {
        transform: translate(-30px, 60px);
    }
    75% {
        transform: translate(40px, -20px);
    }
}
