/* How We Do It Section */
#how-we-do-it {
    position: relative;
    width: 100%;
    height: 150vh; /* Changed from 100vh to accommodate longer pin */
    background-color: #121212;
    color: #fff;
}

#how-we-do-it-pinned-content {
    position: sticky; /* ADDED: Use CSS sticky positioning */
    top: 0px; /* ADDED: Stick below the 70px fixed navbar */
    z-index: 10; /* ADDED: Ensure proper stacking */
    width: 100%;
    height: 100vh; /* Pinned area takes full viewport height */
    overflow: visible; /* Allow summary text shine to not be clipped by this if it uses pseudo */
}

#browser-frame {
    position: absolute; /* Positioned within #how-we-do-it-pinned-content */
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16 / 10;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    background-color: rgba(28, 28, 28, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#browser-bar {
    background-color: rgba(42, 42, 42, 0.9);
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browser-buttons {
    display: flex;
    align-items: center;
}

.browser-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.browser-button.red { background-color: #ff5f57; }
.browser-button.yellow { background-color: #febc2e; }
.browser-button.green { background-color: #28c840; }

.nav-button {
    color: #a0a0a0;
    margin-left: 10px;
    font-size: 14px;
    cursor: default;
}

.nav-button:hover { }

.url-container {
    background-color: #3a3a3a;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0 10px;
}

#browser-bar .url-text {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #f0f0f0;
    background-color: transparent;
    padding: 0;
    border-radius: 4px;
    text-align: left;
}

#url-lock-icon {
    color: #a0a0a0;
}

.browser-bar-spacer {
    width: 125px;
    flex-shrink: 0;
}

#browser-content {
    flex-grow: 1;
    position: relative;
    padding: 15px;
    overflow: hidden;
    background-color: transparent; /* Will change to #0d1117 */
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
    box-sizing: border-box;
}

#page-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Wireframe Block Base Styles */
.new-wireframe-block {
    position: absolute;
    background-color: rgba(136, 136, 136, 0.05);
    border: 1px solid #888; /* Default solid border */
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center center;
    box-sizing: border-box;
}

.dotted-wireframe-border {
    border-style: dashed; /* Override default to dashed */
    /* border-color and border-width will be inherited or can be specified */
}

/* Wireframe Nav */
#new-wireframe-nav {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

#nav-logo {
    width: 32px;
    height: 32px;
    background-color: #c9d1d9;
    border-radius: 50%;
    transform: scale(0.7);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links span {
    margin-left: 18px;
    font-size: 14px;
    color: #c9d1d9;
    transform: translateY(-10px);
}

/* Wireframe Hero Area */
#new-wireframe-hero-area {
    top: calc(8% + 10px);
    left: 0px;
    width: 100%;
    height: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Main Heading Wireframe */
#new-wireframe-main-heading {
    top: 10%;
    left: 25%;
    width: 50%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#main-security-heading {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    color: #c9d1d9;
    line-height: 1.25;
    transform: scale(0.95);
    height: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

#main-security-heading-text {
    display: inline-block;
    vertical-align: top;
    min-height: 2.5em;
    width: 100%;
}

/* CTA Wireframes */
#new-wireframe-cta1 {
    top: calc(10% + 40% + 10%);
    left: calc(50% - 22% - 5px);
    width: 22%;
    height: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px; /* Initial border radius */
    cursor: default;
    font-weight: 500;
    font-size: 14px;
    transform: translateY(10px);
    /* Inherit wireframe styling from .new-wireframe-block */
}

#new-wireframe-cta2 {
    top: calc(10% + 40% + 10%);
    left: calc(50% + 5px);
    width: 22%;
    height: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px; /* Initial border radius */
    cursor: default;
    font-weight: 500;
    font-size: 14px;
    transform: translateY(10px);
    /* Inherit wireframe styling from .new-wireframe-block */
}

/* Cards Container */
#new-wireframe-cards-container {
    top: calc(8% + 10px + 45% + 10px);
    left: 0px;
    width: 100%;
    height: calc(100% - (8% + 10px + 45% + 10px) - 0px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
}

/* Individual Cards */
#new-wireframe-card1,
#new-wireframe-card2 {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* transform: translateY(20px); */ /* REMOVED to prevent initial jump */
    /* Inherit wireframe styling from .new-wireframe-block initially */
    /* Final styling will be applied via GSAP */
    box-sizing: border-box;
}

.wireframe-text-placeholder {
    position: absolute;
    background-color: rgba(100,100,100,0.15);
    border: 1px dashed #777;
    box-sizing: border-box;
}

.wireframe-text-placeholder.header {
    top: 24px;
    left: 24px;
    width: calc(100% - 48px);
    height: 2.5em;
}

.wireframe-text-placeholder.paragraph {
    bottom: 24px;
    left: 24px;
    width: calc(100% - 48px);
    height: 1.5em;
}

#new-wireframe-card1 h4,
#new-wireframe-card2 h4 {
    top: 24px;
    left: 24px;
    width: calc(100% - 48px);
    font-size: 20px;
    font-weight: 600;
    color: #c9d1d9;
    margin: 0;
}

#new-wireframe-card1 p,
#new-wireframe-card2 p {
    bottom: 24px;
    left: 24px;
    width: calc(100% - 48px);
    margin: 0;
}

#new-wireframe-card1 p a,
#new-wireframe-card2 p a {
    font-size: 14px;
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    cursor: default;
}

#new-wireframe-card1 p a:hover,
#new-wireframe-card2 p a:hover {
    text-decoration: none;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    pointer-events: none;
}

#summary-text {
    position: absolute; /* Positioned within #how-we-do-it-pinned-content */
    bottom: 8vh; /* MOVED UP: Was 5vh, from the bottom of the 100vh pinned wrapper */
    left: 50%;
    transform: translateX(-50%); /* Keep X centering, GSAP handles scale & initial Y for animation */
    width: 80%;
    max-width: 800px;
    text-align: center;
    font-size: 36px; /* UPDATED: Was 24px */
    font-weight: bold;
    color: #f5f5f5; /* Closer to white */
    opacity: 0; /* Ensure it starts transparent for JS fade-in */
    visibility: hidden; /* Add for clean initial hidden state for JS fade-in */
    transform-origin: center center;
    overflow: visible; /* Required for mask to work if mask area is larger */
    z-index: 20;
    min-height: 1.5em; /* ADDED: To prevent layout shift if text content makes it taller/shorter initially */
}

#summary-text::after {
    /* Remove old shine pseudo-element if it exists, we are using mask now */
    content: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #browser-frame {
        width: 90%;
        top: 15vh;
    }
    #browser-bar .url-text { font-size: 12px; padding: 4px 8px; }
    #main-security-heading { font-size: 32px; }
    #new-wireframe-card1 h4, #new-wireframe-card2 h4 { font-size: 18px; }
    #new-wireframe-card1 p a, #new-wireframe-card2 p a { font-size: 13px; }
    #summary-text { font-size: 30px; bottom: 8%; } /* UPDATED: Was 20px */
    #new-wireframe-cards-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    #browser-frame {
        width: 95%;
        top: 15vh;
    }
    #browser-bar .url-text { font-size: 10px; }
    #main-security-heading { font-size: 24px; }
    #new-wireframe-card1 h4, #new-wireframe-card2 h4 { font-size: 16px; }
    #new-wireframe-card1 p a, #new-wireframe-card2 p a { font-size: 12px; }
    .nav-links span { margin-left: 10px; font-size: 12px; }
}

#loading-progress-bar-container {
    position: absolute;
    top: 11vh; /* ADJUSTED: Moved up, was 10vh */
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 600px; /* Keep max-width if desired, or adjust */
    display: flex;
    justify-content: center; /* ADDED: Center the progress bar track if it's the only child */
    align-items: center; /* Can remain to vertically center track if padding causes space */
    padding: 5px 5px; /* ADJUSTED: Reduced top/bottom padding as text is gone */
    background-color: rgba(42, 42, 42, 0.9);
    border-radius: 8px; /* ADJUSTED: Slightly more rounded like image */
    border: 1px solid #2a2a2a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 15;
    opacity: 0; /* ADDED: Start fully transparent */
    visibility: hidden; /* ADDED: Start hidden, GSAP autoAlpha will manage */
}

#progress-bar-track {
    width: 100%; /* CHANGED: Track takes full width of container */
    height: 10px;
    background-color: #1c1c1c;
    border-radius: 5px;
    overflow: hidden; 
    /* REMOVED: flex-grow: 1; */
}

#progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #20C9D4; /* UPDATED: Site primary blue */
    border-radius: 5px;
}

.hwdi-cta-link {
    text-decoration: none;
    color: inherit;
    pointer-events: none; /* Initially not clickable */
}

.hwdi-cta-link:hover {
    text-decoration: none;
} 