/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    font-family: 'Roboto Mono', 'Source Code Pro', Menlo, Courier, monospace;
    background: white;
    color: black;
    min-height: 100vh;
}
/* Grid Background Pattern - Purple/Pink gradient, denser grid */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, #ccc 0 1px, transparent 1px 95px),
    repeating-linear-gradient(90deg, #ccc 0 1px, transparent 1px 95px);
  background-size: 95px 95px;
  z-index: 0;

  /* Smooth fading starting early */
  mask-image: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 20%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 80%
  );
  -webkit-mask-image: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.7) 20%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 80%
  );

  pointer-events: none;
}

/* Header Navigation - Static positioning, 1200px width */
.site-header {
    width: 1220px;
    margin: 20px auto 0;
    background: white;
    border: 1px solid black;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: white;
    padding: 10px 20px;
    border-radius: 6px;
}

.brand-name {
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.brand-name:hover {
    opacity: 0.7;
}

.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.animated-logo {
    width: 95px;
    height: 95px;
    background: black;
    border-radius: 50%;
    padding: 5px;
    overflow: hidden;
}

.logo-svg {
    width: 300%;
    height: 300%;
    transform: translate(-33.33%, -33.33%);
    visibility: hidden;
}

.ring-element, .center-icon {
    fill: none;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-link {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 16px;
}

.action-docs {
    background: white;
    border: 1px solid black;
    color: black;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 5px;
}

.action-primary {
    font-family: 'Roboto Mono', 'Source Code Pro', Menlo, Courier, monospace;
    background: black;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px 13px 20px;
    border-radius: 5px;
}

.action-icon {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-wrapper {
    position: relative;
    z-index: 1;
}

/* Hero Section - 1200px width */
.hero-section {
    width: 1200px;
    margin: 60px auto 0;
    padding: 40px 0;
}

.hero-content {
    display: flex;
    gap: 40px;
}

.content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-badge {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.tech-highlight {
    background: black;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.hero-heading {
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.hero-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.primary-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-button {
    font-family: 'Roboto Mono', 'Source Code Pro', Menlo, Courier, monospace;
    background: black;
    color: white;
    border: none;
    padding: 15px 28px 15px 24px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-button:hover {
    background: #333;
    box-shadow: 0 0 30px rgba(255,255,255,0.25);
}

.main-button:active {
    transform: scale(0.96);
}

.main-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) rotate(25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(25deg); }
    10% { transform: translateX(100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

.button-icon {
    width: 20px;
    height: 20px;
}

.compatibility-info {
    margin-top: 6px;
    font-size: 12px;
    color: gray;
    display: flex;
    align-items: center;
    gap: 4px;
}

.os-icon {
    width: 16px;
    height: 16px;
}

.docs-button {
    background: white;
    color: black;
    border: 1px solid black;
    padding: 14px 24px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.docs-button:hover {
    background: #f2f2f2;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.use-case {
    background: black;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-bottom: 20px;
}

.interface-image {
    width: 100%;
    height: auto;
    border: 1px 1px solid black;
    border-radius: 1px;
}

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

.learn-links p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: gray;
}

.learn-links a {
    font-size: 14px;
    color: black;
    text-decoration: underline;
    margin: 0 5px;
}

.learn-links a:hover {
    color: gray;
}

/* Voice Models Section - 1200px width, reordered elements */
.voice-models {
    width: 1200px;
    margin: 80px auto 0;
}

.models-header {
    margin-bottom: 30px;
}

.models-header h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
}

.models-header p {
    font-size: 14px;
    color: gray;
}

.models-header a {
    color: black;
    text-decoration: underline;
}

.models-header a:hover {
    color: gray;
}

.models-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Reordered model elements: avatar, name, date, add-button (center), audio-control (right) */
.voice-model {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.voice-model:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.model-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.model-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.model-details {
    flex: 2;
    font-size: 16px;
    font-weight: bold;
    padding-left: 20px;
}

.model-created {
    flex: 0 0 120px;
    font-size: 14px;
    color: gray;
    text-align: center;
    margin: 0 20px;
}

.model-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.add-model {
    background: black;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-model:hover {
    background: #222;
}

.help-info {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.help-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eee;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.help-info:hover .help-icon {
    background: #ddd;
}

.help-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background: black;
    color: white;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    z-index: 10;
}

.help-info:hover .help-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Audio control moved to the right */
.model-audio {
    flex: 0 0 auto;
    margin-left: 20px;
}

.audio-control {
    background: black;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.audio-control:hover {
    background: #111;
}

.audio-icon {
    width: 24px;
    height: 24px;
}

.play-shape, .pause-shape rect {
    fill: white;
}

.more-models {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.more-models a {
    font-size: 18px;
    color: black;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.more-models a:hover {
    color: gray;
}

/* Footer - 1200px width */
.site-footer {
    width: 1200px;
    margin: 80px auto 40px;
    color: black;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background: black;
    margin-bottom: 40px;
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-logo {
    width: 30px;
    height: 30px;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
}

.company-details {
    font-size: 12px;
    color: gray;
    margin-top: 10px;
    line-height: 1.4;
}

.section-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.section-links a, .section-links p {
    font-size: 14px;
    color: black;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.section-links a:hover {
    text-decoration: underline;
    color: gray;
}

.footer-disclaimer {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Beta Registration Modal */
.beta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1003;
    display: none;
}

.beta-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.form-wrapper h2 {
    margin-top: 0;
    font-size: 24px;
}

.form-wrapper p {
    margin-bottom: 20px;
    color: #666;
}

.form-wrapper input, .form-wrapper select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form-wrapper button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.consent-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.consent-agreement input {
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-agreement a {
    color: black;
    text-decoration: underline;
}

.form-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.confirmation-message {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Access Loading Screen */
.access-screen {
    position: fixed;
    inset: 0;
    background: black;
    color: white;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    z-index: 9999;
}

.access-content {
    text-align: left;
    max-width: 600px;
    width: 100%;
}

.access-branding {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.access-icon {
    width: 32px;
    height: 32px;
}

.access-title {
    font-weight: 800;
    font-size: 26px;
    color: #bbb;
}

.access-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 14px;
}

.access-content p {
    font-size: 15px;
    color: #bbb;
    line-height: 1.6;
}

.access-content a {
    color: #a370f7;
    text-decoration: none;
    font-weight: 600;
}

.access-content a:hover {
    text-decoration: underline;
}

/* Responsive Design - Desktop First, stable adaptation */
@media (max-width: 1250px) {
    .site-header {
        width: 95%;
        margin: 20px auto 0;
    }

    .hero-section {
        width: 95%;
    }

    .voice-models {
        width: 95%;
    }

    .site-footer {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .animated-logo {
        width: 70px;
        height: 70px;
        padding: 4px;
    }

    .brand-name {
        font-size: 32px;
    }

    .action-link, .action-docs {
        font-size: 18px;
        padding: 6px 14px;
    }

    .action-primary {
        display: none;
    }

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

    .content-right {
        order: 1;
    }

    .content-left {
        order: 2;
        text-align: center;
    }

    .tech-badge {
        font-size: 12px;
        align-items: stretch;
        justify-content: center;
    }
    .hero-section {
        padding: 30px 0;
    }

    .hero-heading {
        font-size: 32px;
    }

    .hero-text {
        font-size: 15px;
    }

    .main-button, .docs-button {
        font-size: 18px;
        padding: 12px 20px;
    }
    .cta-section {
        gap: 12px;
        align-items: stretch;
        justify-content: center;
    }
    .use-cases {
        gap: 8px;
        justify-content: center;
    }

    .use-case {
        font-size: 13px;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    .site-header {
        width: 95%;
        margin: 10px auto 0;
        padding: 8px 15px;
    }

    .header-container {
        padding: 0px 0px;
    }

    .header-center {
        display: none;
    }

    .brand-name {
        font-size: 24px;
    }

    .header-actions {
        gap: 8px;
    }

    .action-link, .action-docs {
        font-size: 16px;
        padding: 8px 14px;
    }

    .hero-section {
        width: 95%;
        padding: 20px 10px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-heading {
        font-size: 26px;
    }

    .hero-text {
        font-size: 14px;
    }

    .main-button, .docs-button {
        font-size: 16px;
        padding: 10px 18px;
    }

    .compatibility-info {
        font-size: 10px;
    }

    .button-icon {
        width: 18px;
        height: 18px;
    }

    .os-icon {
        width: 14px;
        height: 14px;
    }

    .use-cases {
        gap: 6px;
    }

    .use-case {
        font-size: 12px;
        padding: 3px 6px;
    }

    .learn-links p, .learn-links a {
        font-size: 13px;
    }

    .voice-models {
        width: 95%;
    }

    .voice-model {
        padding: 8px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .model-avatar {
        width: 35px;
        height: 35px;
    }

    .model-avatar img {
        width: 35px;
        height: 35px;
    }

    .model-details {
        font-size: 14px;
        padding-left: 8px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cta-section {
        gap: 12px;
        align-items: stretch;
        justify-content: center;
    }

    .model-created {
        flex: 0 0 80px;
        font-size: 12px;
        text-align: center;
    }

    .model-actions {
        flex: 0 0 auto;
        gap: 6px;
        margin: 0 8px;
    }

    .add-model {
        font-size: 12px;
        padding: 6px 10px;
    }

    .model-audio {
        flex: 0 0 auto;
        margin-left: 8px;
    }

    .audio-control {
        width: 28px;
        height: 28px;
    }

    .audio-icon {
        width: 20px;
        height: 20px;
    }

    .help-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .help-tooltip {
        font-size: 11px;
        width: 160px;
    }

    .site-footer {
        width: 95%;
    }

    .footer-wrapper {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 6px 10px;
    }

    .brand-name {
        font-size: 20px;
    }

    .header-actions {
        gap: 6px;
    }

    .action-link, .action-docs {
        font-size: 14px;
        padding: 6px 10px;
    }

    .hero-section {
        padding: 15px 5px;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-heading {
        font-size: 22px;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 13px;
    }

    .cta-section {
        gap: 12px;
        align-items: stretch;
        justify-content: center;
    }

    .main-button, .docs-button {
        font-size: 15px;
        padding: 12px 20px;
        justify-content: center;
    }

    .voice-model {
        padding: 6px 8px;
        gap: 6px;
        align-items: stretch;
    }

    .model-avatar {
        width: 30px;
        height: 30px;
        align-self: flex-start;
    }

    .model-avatar img {
        width: 30px;
        height: 30px;
    }

    .model-details {
        font-size: 13px;
        padding-left: 0;
        text-align: left;
        white-space: normal;
        line-height: 1.3;
    }

    .model-created {
        font-size: 11px;
        text-align: left;
        flex: none;
    }

    .model-actions {
        flex-direction: row;
        justify-content: space-between;
        margin: 0;
        align-items: center;
    }

    .add-model {
        font-size: 11px;
        padding: 6px 10px;
    }

    .model-audio {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .audio-control {
        width: 24px;
        height: 24px;
    }

    .audio-icon {
        width: 16px;
        height: 16px;
    }

    .help-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .help-tooltip {
        width: 140px;
        font-size: 10px;
    }
}
