* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --blue: #1E90FF;
    --red: #FF4444;
    --green: #00FF00;
    --white: #FFFFFF;
    --purple: #9370DB;
    --orange: #FFA500;
    --pink: #FF69B4;
    --yellow: #FFD700;
    --dark-bg: #0a1929;
    --card-bg: #132f4c;
    --text-light: #B2BAC2;
    --border: #1e4976;
    --rope-tan: #D4C4B0;
    --rope-brown: #8B7765;
    --brass: #b8956a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #001e3c 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    background: rgba(19, 47, 76, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-text {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-logo {
    height: 180px;
    width: auto;
    display: block;
    transition: transform 0.3s;
    border: none;
    background: transparent;
    border-radius: 50%;
    box-shadow: none;
    outline: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(30, 144, 255, 0.2);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, transparent, rgba(30, 144, 255, 0.1));
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

.platform-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), rgba(30, 144, 255, 0.6));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 2px solid var(--blue);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-note {
    font-size: 1rem;
    color: var(--rope-tan);
    margin-top: 1rem;
    font-weight: 500;
}

/* Tools Grid */
.tools-grid {
    padding: 3rem 0;
}

.tools-grid h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tools-grid .container > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: visible;
}

/* Straight twisted rope texture at top */
.tool-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 5%;
    right: 5%;
    height: 10px;
    background: 
        /* Twisted rope texture */
        repeating-linear-gradient(
            135deg,
            rgba(139, 119, 101, 1) 0px,
            rgba(184, 149, 106, 0.9) 2px,
            rgba(212, 196, 176, 0.8) 4px,
            rgba(184, 149, 106, 0.9) 6px,
            rgba(139, 119, 101, 1) 8px
        ),
        repeating-linear-gradient(
            -135deg,
            rgba(139, 119, 101, 0.8) 0px,
            rgba(184, 149, 106, 0.7) 2px,
            rgba(139, 119, 101, 0.8) 4px
        ),
        /* Fade at edges */
        linear-gradient(90deg,
            transparent 0%,
            rgba(139, 119, 101, 0.95) 8%,
            rgba(139, 119, 101, 0.95) 92%,
            transparent 100%
        );
    border-radius: 5px;
    box-shadow: 
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Corner anchor decorations */
.tool-card::after {
    content: '⚓';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    color: var(--rope-tan);
    opacity: 0.4;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.tool-card:hover::after {
    opacity: 0.7;
    transform: rotate(15deg);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.3);
}

.tool-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 0, 0.05));
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tool-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tool-price {
    color: var(--green);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tool-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.3rem 0;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--border);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.btn-buy {
    background: linear-gradient(135deg, #b8956a 0%, #8B7765 100%);
    color: var(--white);
    font-weight: 600;
    border: 2px solid var(--brass);
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
    margin-top: 0.5rem;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #d4c4b0 0%, #b8956a 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.5);
}

.btn-primary {
    background: var(--blue);
    font-weight: bold;
}

.btn-primary:hover {
    background: #1c7ed6;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.btn-details {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(180deg, rgba(184, 149, 106, 0.15) 0%, rgba(139, 119, 101, 0.15) 100%);
    color: var(--brass);
    border: 2px solid rgba(139, 119, 101, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.5px;
    margin: 1rem 0;
    box-shadow: 
        inset 0 1px 2px rgba(212, 196, 176, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.btn-details:hover {
    border-color: rgba(184, 149, 106, 0.7);
    background: linear-gradient(180deg, rgba(184, 149, 106, 0.25) 0%, rgba(139, 119, 101, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 2px rgba(212, 196, 176, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.3);
    color: var(--rope-tan);
}

.tool-details {
    text-align: left;
    padding: 1.5rem;
    background: rgba(10, 25, 41, 0.5);
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--blue);
}

.tool-details h4 {
    color: var(--blue);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.tool-details h4:first-child {
    margin-top: 0;
}

.tool-details p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Color System Section */
.color-system {
    padding: 4rem 0;
    background: rgba(30, 144, 255, 0.05);
}

.color-system h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.color-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.color-group {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.color-group h3 {
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
}

.color-line {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    border: 2px solid;
}

.color-line.blue {
    background: rgba(30, 144, 255, 0.2);
    border-color: var(--blue);
    color: var(--blue);
}

.color-line.red {
    background: rgba(255, 68, 68, 0.2);
    border-color: var(--red);
    color: var(--red);
}

.color-line.green {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--green);
    color: var(--green);
}

.color-line.white {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.color-line.purple {
    background: rgba(147, 112, 219, 0.2);
    border-color: var(--purple);
    color: var(--purple);
}

.color-line.orange {
    background: rgba(255, 165, 0, 0.2);
    border-color: var(--orange);
    color: var(--orange);
}

.color-line.pink {
    background: rgba(255, 105, 180, 0.2);
    border-color: var(--pink);
    color: var(--pink);
}

.color-line.yellow {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--yellow);
    color: var(--yellow);
}

/* Sequence Modes */
.sequence-modes {
    text-align: center;
}

.sequence-modes h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.mode-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

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

.mode-card.featured-mode {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 0, 0.05));
}

.mode-card h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.line-count {
    color: var(--green);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Why Section */
.why-section {
    padding: 4rem 0;
}

.why-section h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

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

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

/* Bundles */
.bundles {
    padding: 4rem 0;
    background: rgba(30, 144, 255, 0.05);
}

.bundles h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bundle-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.bundle-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 0, 0.05));
}

.bundle-icon {
    margin-bottom: 1rem;
}

.bundle-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bundle-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bundle-price {
    color: var(--green);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.save {
    display: block;
    color: var(--orange);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.bundle-card ul {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.bundle-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Payment Methods */
.payment-methods {
    padding: 3rem 0;
    text-align: center;
    background: var(--card-bg);
    border-top: 2px solid var(--border);
}

.payment-methods h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.payment-desc {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.payment-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.payment-badge {
    background: var(--dark-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 600;
}

.payment-badge:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.payment-icon {
    font-size: 2rem;
}

.payment-contact {
    color: var(--text-light);
    font-size: 1.1rem;
}

.payment-contact a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.payment-contact a:hover {
    color: var(--green);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: rgba(19, 47, 76, 0.3);
}

.about-section h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 2px solid var(--brass);
    border-radius: 8px;
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.bio-content strong {
    color: var(--brass);
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: var(--dark-bg);
    border-top: 2px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--green);
}

.tagline-footer {
    color: var(--blue);
    font-style: italic;
    margin-top: 1rem;
}

/* Mode Modals */
.mode-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.mode-modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-bg) 100%);
    margin: 3% auto;
    padding: 3rem;
    border: 3px solid var(--rope-brown);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.mode-modal-close {
    color: var(--text-light);
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.mode-modal-close:hover,
.mode-modal-close:focus {
    color: var(--red);
}

.mode-modal-content h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 0.5rem;
}

.logic-flow {
    background: rgba(10, 25, 41, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--blue);
}

.logic-step {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    margin: 1rem 0;
    position: relative;
    padding-left: 4rem;
}

.logic-step.safety-check {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 0, 0.05));
}

.step-number {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--brass);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logic-step h4 {
    color: var(--blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.logic-step p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.logic-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--brass);
    margin: 0.5rem 0;
}

/* Downloads Section */
.downloads-section {
    padding: 4rem 0;
    background: rgba(30, 144, 255, 0.05);
}

.downloads-section h2 {
    text-align: center;
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--green);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 5%;
    right: 5%;
    height: 10px;
    background: 
        repeating-linear-gradient(
            135deg,
            rgba(139, 119, 101, 1) 0px,
            rgba(184, 149, 106, 0.9) 2px,
            rgba(212, 196, 176, 0.8) 4px,
            rgba(184, 149, 106, 0.9) 6px,
            rgba(139, 119, 101, 1) 8px
        ),
        linear-gradient(90deg,
            transparent 0%,
            rgba(139, 119, 101, 0.95) 8%,
            rgba(139, 119, 101, 0.95) 92%,
            transparent 100%
        );
    border-radius: 5px;
    box-shadow: 
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--green);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.download-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.download-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.download-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.download-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.download-count {
    color: var(--brass);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.download-btn {
    width: 100%;
    font-weight: bold;
}

.download-instructions {
    background: var(--dark-bg);
    border: 2px solid var(--rope-brown);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.download-instructions h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.download-instructions ol {
    color: var(--text-light);
    line-height: 2;
    padding-left: 2rem;
}

.download-instructions li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tools-grid .container > div,
    .color-demo,
    .why-grid,
    .bundle-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 10% auto;
    }
    
    .logic-step {
        padding-left: 3.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 2rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}
