@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html,
body {
    margin: 0px;
    height: 100%;
}

button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

a {
    text-decoration: none;
}

:root {
    --primary-color: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary-color: #10B981;
    --bg-dark: #1A1A2E;
    --bg-darker: #0F0F1E;
    --bg-card: #2A2A3E;
    --text-primary: #FFFFFF;
    --text-secondary: #B4B4B8;
    --border-color: #3D3D52;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.desktop {
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section (Content) */
.content {
    position: relative;
    width: calc(100% - 60px);
    min-height: 800px;
    background-color: #111312;
    border-radius: 0px 0px 60px 60px;
    overflow: hidden;
    margin: 0 30px;
    box-sizing: border-box;
    /* Prevent shadows/backgrounds from showing outside border-radius */
    isolation: isolate;
}

.light {
    position: absolute;
    top: -600px;
    left: calc(50% - 533px);
    width: 1066px;
    height: 1066px;
    display: flex;
    justify-content: center;
    border-radius: 533px;
    filter: blur(150px);
    background: linear-gradient(180deg, rgba(35, 35, 47, 1) 0%, rgba(111, 111, 149, 1) 100%);
    pointer-events: none;
}

.ellipse {
    margin-top: 283px;
    width: 533px;
    height: 533px;
    margin-left: 1px;
    border-radius: 266.5px;
    filter: blur(75px);
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(111, 111, 149, 1) 100%);
}

/* Header */
.header {
    display: flex;
    width: calc(100% - 64px);
    max-width: 1304px;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 10;
}

.document-page .header {
    position: absolute;
    top: 32px;
    left: 32px;
    width: calc(100% - 64px);
    max-width: 1304px;
    z-index: 10;
}

.frame {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.div {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    position: relative;
    flex: 0 0 auto;
}

.text-wrapper {
    position: relative;
    width: fit-content;
    margin-top: -1px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 17.6px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.text-wrapper:hover {
    opacity: 0.8;
}

.text-wrapper:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Hero Content */
.frame-2 {
    display: flex;
    width: calc(100% - 176px);
    max-width: 1192px;
    align-items: center;
    gap: 263px;
    position: absolute;
    top: 153px;
    left: 88px;
    z-index: 1;
}

.text-wrapper-3 {
    width: 562px;
    color: #ffffff;
    font-size: 48px;
    line-height: 52.8px;
    position: relative;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0;
}

.p {
    position: relative;
    width: 365px;
    margin-top: -1px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 21.8px;
    margin: 0;
}

/* Phone Images */
.hero-phones-container {
    position: absolute;
    top: 415px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: -20px;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
}

.iphone-plus-light {
    position: relative;
    width: 335px;
    height: 385px;
    object-fit: contain;
    transform: rotate(-5deg) translateY(20px);
    margin-right: -20px;
}

.img {
    position: relative;
    width: 317px;
    height: 465px;
    object-fit: contain;
    transform: rotate(0deg);
    z-index: 3;
    margin-top: -40px;
}

.iphone-plus-light-2 {
    position: relative;
    width: 334px;
    height: 385px;
    object-fit: contain;
    transform: rotate(5deg) translateY(20px);
    margin-left: -20px;
}

/* About Game Section */
.about-game {
    width: calc(100% - 60px);
    margin: 30px;
    padding: 64px 0;
    background: #111312;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-radius: 60px;
    box-sizing: border-box;
    /* Ensure proper clipping of all child elements */
    clip-path: inset(0 round 60px);
    -webkit-clip-path: inset(0 round 60px);
    /* Create new stacking context and improve clipping */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
    /* Ensure white background is visible */
    isolation: isolate;
}

.about-game-light {
    position: absolute;
    top: -133px;
    left: calc(50% - 533px);
    width: 1066px;
    height: 1066px;
    display: flex;
    justify-content: center;
    border-radius: 533px;
    filter: blur(150px);
    background: linear-gradient(180deg, rgba(35, 35, 47, 1) 0%, rgba(111, 111, 149, 1) 100%);
    pointer-events: none;
    /* Ensure it's clipped by parent */
    will-change: transform;
    transform: translateZ(0);
}

.about-game-ellipse {
    margin-top: 283px;
    width: 533px;
    height: 533px;
    margin-left: 1px;
    border-radius: 266.5px;
    filter: blur(150px);
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(111, 111, 149, 1) 100%);
}

.about-game-container {
    max-width: 1304px;
    margin: 0 auto;
    padding: 30px 32px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 64px;
    font-weight: 500;
    color: #ffffff;
    font-family: "Montserrat", Helvetica;
    line-height: 52.8px;
}

.about-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 263px;
    margin-bottom: 226px;
}

.about-subtitle {
    font-size: 48px;
    font-weight: 500;
    line-height: 52.8px;
    color: #ffffff;
    width: 562px;
    margin: 0;
    font-family: "Montserrat", Helvetica;
}

.about-subtitle-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 21.8px;
    color: #ffffff;
    flex: 1;
    margin: 0;
    font-family: "Montserrat", Helvetica;
}

.about-cards-top,
.about-cards-bottom {
    display: flex;
    gap: 46px;
    margin-bottom: 120px;
}

.about-card {
    background: #23232f;
    border-radius: 32px;
    padding: 32px;
    color: #ffffff;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-icon-wrapper {
    position: absolute;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    position: relative;
}

.card-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
}

.card-icon-emoji {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    z-index: 1;
}

.about-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 27.2px;
    color: #ffffff;
    margin: 0;
    text-align: center;
    font-family: "Montserrat", Helvetica;
}

.about-card-content {
    font-size: 16px;
    font-weight: 500;
    line-height: 21.8px;
    color: #ffffff;
    font-family: "Montserrat", Helvetica;
}

.about-card-content p {
    margin: 0 0 8px 0;
}

.about-card-content ul {
    margin: 8px 0 0 24px;
    padding: 0;
    list-style: disc;
}

.about-card-content li {
    margin-bottom: 4px;
}

.about-card-footer {
    font-size: 16px;
    font-weight: 500;
    line-height: 21.8px;
    color: #ffffff;
    margin: 0;
    min-height: 44px;
    font-family: "Montserrat", Helvetica;
}

.about-phones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin-bottom: 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-phone-item {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-phone-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.about-phone-item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.about-phone-item:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

.about-phone-item:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.about-phone-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.about-spade-icon {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 120px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.about-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-screenshots .phone-mockup-small:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.about-screenshots .phone-mockup-small:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.about-screenshots .center-icon {
    grid-column: 2;
    grid-row: 1;
    font-size: 4rem;
    color: #000000;
}

.about-screenshots .phone-mockup-small:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

.about-screenshots .phone-mockup-small:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.phone-mockup-small {
    width: 160px;
    height: 320px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 15px 40px var(--shadow);
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.app-content-small {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.app-screen-title-small {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-primary);
}

.app-calendar-small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: center;
}

.app-timer {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.app-keypad-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.key-small {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.app-chart-small {
    height: 60px;
    background: var(--bg-card);
    border-radius: 6px;
    margin-bottom: 15px;
}

.app-discipline-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.app-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.card {
    width: 30px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.app-close,
.app-menu {
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.app-logo-small {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.app-title-small {
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 8px;
    color: var(--text-primary);
}


/* Steps Section */
.steps {
    width: calc(100% - 60px);
    margin: 30px;
    padding: 40px 0;
    background: #111312;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-radius: 60px;
    box-sizing: border-box;
    max-height: 100vh;
    /* Ensure proper clipping of all child elements */
    clip-path: inset(0 round 60px);
    -webkit-clip-path: inset(0 round 60px);
    /* Create new stacking context and improve clipping */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
    /* Ensure white background is visible */
    isolation: isolate;
}

.steps-light {
    position: absolute;
    top: -133px;
    left: calc(50% - 533px);
    width: 1066px;
    height: 1066px;
    display: flex;
    justify-content: center;
    border-radius: 533px;
    filter: blur(150px);
    background: linear-gradient(180deg, rgba(35, 35, 47, 1) 0%, rgba(111, 111, 149, 1) 100%);
    pointer-events: none;
    /* Ensure it's clipped by parent */
    will-change: transform;
    transform: translateZ(0);
}

.steps-ellipse {
    margin-top: 283px;
    width: 533px;
    height: 533px;
    margin-left: 1px;
    border-radius: 266.5px;
    filter: blur(150px);
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(111, 111, 149, 1) 100%);
}

.steps-container {
    max-width: 1304px;
    margin: 0 auto;
    padding: 30px 32px;
    position: relative;
    z-index: 1;
}

.steps-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    min-height: 0;
}

.steps-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.steps-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    text-align: center;
    font-family: "Montserrat", Helvetica;
}

.steps-title-mobile {
    display: none;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 2rem 0;
    text-align: center;
    font-family: "Montserrat", Helvetica;
}

.steps-image-wrapper {
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 40px;
}

.steps-right {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.steps-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.laptop-mockup {
    width: 500px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 60px var(--shadow);
}

.laptop-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.app-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.app-screen-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.app-calendar {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.app-number-large {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-top: 20px;
}

.phone-mockup-steps {
    width: 180px;
    height: 360px;
    background: var(--bg-card);
    border-radius: 22px;
    padding: 7px;
    box-shadow: 0 15px 50px var(--shadow);
    position: relative;
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    background: #23232f;
    border-radius: 24px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.step-icon-wrapper {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    position: relative;
}

.step-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
}

.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 500;
    color: #23232f;
    z-index: 1;
    font-family: "Montserrat", Helvetica;
}

.step-content {
    flex: 1;
    margin-top: 12px;
    min-height: 0;
}

.step-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #ffffff;
    text-align: center;
    font-family: "Montserrat", Helvetica;
}

.step-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    font-family: "Montserrat", Helvetica;
}

/* Footer */
.frame-3 {
    position: relative;
    width: calc(100% - 60px);
    min-height: 200px;
    background-color: #111312;
    border-radius: 60px 60px 0px 0px;
    overflow: hidden;
    margin: 4rem 30px 0 30px;
    box-sizing: border-box;
    /* Prevent shadows/backgrounds from showing outside border-radius */
    isolation: isolate;
}

.ellipse-wrapper {
    position: absolute;
    top: -133px;
    left: calc(50% - 533px);
    width: 1066px;
    height: 1066px;
    display: flex;
    justify-content: center;
    border-radius: 533px;
    filter: blur(150px);
    background: linear-gradient(180deg, rgba(35, 35, 47, 1) 0%, rgba(111, 111, 149, 1) 100%);
    pointer-events: none;
}

.ellipse-2 {
    margin-top: 283px;
    width: 533px;
    height: 533px;
    margin-left: 1px;
    border-radius: 266.5px;
    filter: blur(150px);
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(111, 111, 149, 1) 100%);
}

.header-2 {
    display: flex;
    width: calc(100% - 64px);
    max-width: 1304px;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: calc(50% - 24px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    gap: 40px;
    flex-wrap: wrap;
}

.frame-4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
    text-decoration: none;
}

.icons {
    position: relative;
    width: 120px;
    height: 120px;
    aspect-ratio: 1;
    object-fit: contain;
}

.frame-5 {
    display: flex;
    flex-direction: column;
    width: 95px;
    align-items: flex-start;
    position: relative;
}

.text-wrapper-4 {
    position: relative;
    align-self: stretch;
    margin-top: -1px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 22px;
}

.text-wrapper-5 {
    position: relative;
    align-self: stretch;
    font-family: "Montserrat", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 17.6px;
}

.frame-6 {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    position: relative;
    flex: 0 0 auto;
}

.frame-6 .text-wrapper {
    text-decoration: none;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex: 0 0 auto;
}

.footer-contact {
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    font-size: 16px;
    line-height: 17.6px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.footer-contact:hover {
    opacity: 0.8;
}

/* Document Page Styles */
.document-page {
    position: relative;
    width: calc(100% - 60px);
    min-height: calc(100vh - 200px);
    background-color: #111312;
    border-radius: 0px 0px 60px 60px;
    overflow: hidden;
    margin: 0 30px;
    box-sizing: border-box;
    /* Prevent shadows/backgrounds from showing outside border-radius */
    isolation: isolate;
}

.document-page-light {
    position: absolute;
    top: -600px;
    left: calc(50% - 533px);
    width: 1066px;
    height: 1066px;
    display: flex;
    justify-content: center;
    border-radius: 533px;
    filter: blur(150px);
    background: linear-gradient(180deg, rgba(35, 35, 47, 1) 0%, rgba(111, 111, 149, 1) 100%);
    pointer-events: none;
}

.document-page-ellipse {
    margin-top: 283px;
    width: 533px;
    height: 533px;
    margin-left: 1px;
    border-radius: 266.5px;
    filter: blur(75px);
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(111, 111, 149, 1) 100%);
}

.document-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 153px 88px 60px;
    position: relative;
    z-index: 1;
}

.document-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 52.8px;
    margin-bottom: 3rem;
    color: #ffffff;
    text-align: left;
    font-family: "Montserrat", Helvetica;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 1.5rem;
}

.document-section {
    margin-bottom: 2.5rem;
}

.document-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: rgba(139, 92, 246, 1);
    margin-top: 2rem;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
}

.document-section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
}

.document-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-family: "Montserrat", Helvetica;
    font-weight: 400;
}

.document-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.document-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-family: "Montserrat", Helvetica;
}

.document-section strong {
    color: #ffffff;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .frame-2 {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .text-wrapper-3 {
        width: 100%;
    }

    .p {
        width: 100%;
    }

    .iphone-plus-light,
    .iphone-plus-light-2 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .img {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }

    .about-subtitle-wrapper {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .about-subtitle {
        width: 100%;
    }

    .about-cards-top,
    .about-cards-bottom {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .about-phones-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 2rem;
    }

    .about-phone-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .about-phone-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .about-spade-icon {
        grid-column: 1 / 3;
        grid-row: 2;
        font-size: 100px;
    }

    .about-phone-item:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .about-phone-item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    .steps-content {
        flex-direction: column;
        gap: 2rem;
    }

    .steps-left {
        display: none;
    }

    .steps-right {
        width: 100%;
    }

    .text-wrapper-3 {
        font-size: 32px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-wrapper {
        grid-template-columns: 1fr;
    }

    .laptop-mockup {
        width: 100%;
        max-width: 400px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .content {
        min-height: auto;
        border-radius: 0 0 30px 30px;
        padding-bottom: 2rem;
        padding-top: 100px;
        margin: 0 10px !important;
        width: calc(100% - 20px) !important;
    }

    .document-page {
        padding-top: 100px;
        margin: 0 10px !important;
        width: calc(100% - 20px) !important;
    }

    .light {
        width: 600px;
        height: 600px;
        top: -300px;
        left: calc(50% - 300px);
    }

    .header {
        width: calc(100% - 20px);
        left: 10px;
        top: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .frame {
        flex: 0 0 auto;
    }

    .div {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(35, 35, 47, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 100px 2rem 2rem 2rem;
        gap: 1rem;
        border-bottom: none;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 999;
        overflow-y: auto;
    }

    .div.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .text-wrapper {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s;
        border: 1px solid transparent;
    }

    .text-wrapper:hover,
    .text-wrapper.active {
        background: rgba(139, 92, 246, 0.1);
        border-color: var(--primary-color);
        color: var(--text-primary);
        transform: translateX(5px);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .frame-2 {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        padding: 120px 20px 2rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-phones-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        margin-top: 2rem;
    }

    .iphone-plus-light,
    .img,
    .iphone-plus-light-2 {
        position: relative !important;
        width: 100px !important;
        height: auto !important;
        transform: none !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .text-wrapper-3 {
        font-size: 28px;
        line-height: 1.2;
        width: 100%;
    }

    .p {
        width: 100%;
        font-size: 14px;
    }

    .frame-2 {
        padding-top: 100px;
    }

    .iphone-plus-light,
    .img,
    .iphone-plus-light-2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 120px !important;
        height: auto !important;
        margin: 0;
        display: inline-block;
    }

    .hero-phones-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-wrap: nowrap;
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .iphone-plus-light,
    .img,
    .iphone-plus-light-2 {
        position: relative !important;
        width: 100px !important;
        height: auto !important;
        transform: none !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .about-game {
        width: calc(100% - 20px);
        margin: 10px;
        border-radius: 30px;
        padding: 2rem 0;
        overflow: hidden;
        /* Ensure proper clipping on mobile */
        clip-path: inset(0 round 30px);
        -webkit-clip-path: inset(0 round 30px);
    }

    .about-game-light {
        width: 600px;
        height: 600px;
        top: -300px;
        left: calc(50% - 300px);
    }

    .document-page {
        width: calc(100% - 20px);
        margin: 0 10px;
        border-radius: 0 0 30px 30px;
        min-height: auto;
        overflow: hidden;
    }

    .document-page-light {
        width: 600px;
        height: 600px;
        top: -300px;
        left: calc(50% - 300px);
    }

    .document-content {
        padding: 100px 20px 40px;
    }

    .document-page .header {
        width: calc(100% - 32px);
        left: 16px;
        top: 16px;
    }

    .document-title {
        font-size: 32px;
        line-height: 1.2;
        text-align: center;
    }

    .steps {
        width: calc(100% - 20px);
        margin: 10px;
        overflow: hidden;
        border-radius: 30px;
        padding: 2rem 0;
        /* Remove height restriction on mobile */
        max-height: none;
        min-height: auto;
        height: auto;
        /* Ensure proper clipping on mobile */
        clip-path: inset(0 round 30px);
        -webkit-clip-path: inset(0 round 30px);
    }

    .steps-container {
        padding: 20px 16px;
    }

    .steps-content {
        gap: 1.5rem;
    }

    .steps-right {
        width: 100%;
        max-width: 100%;
    }

    .step-item {
        padding: 16px;
    }

    .steps-list {
        gap: 1rem;
        width: 100%;
    }

    .step-item {
        width: 100%;
        flex: none;
        min-height: auto;
    }

    .steps-light {
        width: 600px;
        height: 600px;
        top: -300px;
        left: calc(50% - 300px);
    }

    .section-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .about-subtitle {
        font-size: 32px;
        line-height: 1.2;
        width: 100%;
    }

    .about-subtitle-text {
        width: 100%;
    }

    .about-phones-grid {
        gap: 10px;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .about-phone-item {
        width: 100%;
        max-width: 150px;
        height: auto;
    }

    .about-phone-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .about-spade-icon {
        font-size: 60px;
        min-height: 100px;
    }

    .steps-title-mobile {
        display: block;
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .steps-title {
        display: none;
    }

    .steps-left {
        display: none !important;
    }

    .steps-image-wrapper {
        display: none;
    }

    .header-2 {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        width: calc(100% - 20px);
        left: 10px;
        position: relative;
        top: auto;
        transform: none;
    }

    .frame-3 {
        margin: 10px 10px 0 10px;
        width: calc(100% - 20px);
        border-radius: 30px 30px 0 0;
        overflow: hidden;
    }

    .frame-4 {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .icons {
        width: 180px;
        height: 180px;
    }

    .frame-6 {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .footer-contacts {
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .footer-contact {
        font-size: 14px;
    }

    .laptop-mockup {
        width: 100%;
        max-width: 350px;
        height: 210px;
    }

    .phone-mockup-steps {
        width: 140px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .text-wrapper-3 {
        font-size: 24px;
    }

    .iphone-plus-light,
    .img,
    .iphone-plus-light-2 {
        width: 160px !important;
    }

    .about-card,
    .statistics-card {
        padding: 1.5rem;
    }

    .phone-mockup-small {
        width: 120px;
        height: 240px;
    }
}
