/* hero */
.hero-section {
    background: linear-gradient(135deg, #16477B 0%, #1a5a99 50%, #618B67 100%);
    padding: 5rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    transition: background 0.2s, transform 0.2s;
    margin-top: 0.5rem;
}

.hero-about-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}

.hero-about-btn .material-symbols-outlined {
    font-size: 1.1rem;
}

/* letter hover effect on the hero title */
.hero-title .letter {
    display: inline-block;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s;
    cursor: default;
}

.hero-title .letter.space {
    display: inline;
}

.hero-title .letter:hover {
    transform: translateY(-6px) rotate(-4deg);
    color: #E49C50;
}

/* hub cards */
.hub-grid {
    max-width: 1200px;
    margin: -3rem auto 4rem;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hub-card {
    flex: 0 1 340px;
    max-width: 340px;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--card-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hub-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.hub-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--card-accent);
}

.card-icon {
    font-size: 3rem;
    color: var(--card-accent);
    transition: color 0.4s ease;
}

.hub-card:hover .card-icon {
    color: white;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #16477B;
    margin-bottom: 0.75rem;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* card colours */
.hub-card.seqta-support   { --card-accent: #618B67; --card-bg: #f0f7f1; }
.hub-card.seqta-naming    { --card-accent: #16477B; --card-bg: #e8f1f8; }
.hub-card.professional-dev { --card-accent: #5B8DB8; --card-bg: #e8f3fc; }
.hub-card.apple-ipad      { --card-accent: #E49C50; --card-bg: #fef5eb; }
.hub-card.applications    { --card-accent: #7C6BAF; --card-bg: #f3f1f9; }
.hub-card.community-projects { --card-accent: #2D7A8E; --card-bg: #e8f4f7; }

/* training banner */
.training-banner {
    display: none;
    background: linear-gradient(90deg, #e9ecf0, #6579a5);
    padding: 1rem 2rem;
    margin: -8.5rem auto 3.8rem auto;
    border-radius: 14px;
    max-width: 1100px;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    position: relative;
    z-index: 1;
}

.training-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.training-banner .material-symbols-outlined { font-size: 2.25rem; color: #16477B; }
.training-banner h2 { margin: 0; font-size: 1.35rem; color: #16477B; }
.training-banner p  { margin: 0.15rem 0 0; color: #27496c; }

.training-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #16477B;
    color: white;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(0,0,0,.15);
}

.training-btn:hover {
    background: #12325b;
    transform: translateY(-1px);
}

/* staff section */
.staff-section {
    max-width: 930px;
    margin: 2.5rem auto 3rem;
    padding-top: 2rem;
    border-top: 4px solid var(--silk-orange);
    text-align: left;
}

.staff-section .section-title {
    margin: 0 0 1rem 0;
    max-width: 930px;
    text-align: left;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem auto 0;
    width: 100%;
}

.staff-card {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--staff-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.staff-card:hover::before {
    transform: scaleX(1);
}

.staff-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 auto 1rem;
    border: 4px solid var(--staff-accent);
    box-shadow: 0 0 0 4px var(--staff-bg);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.staff-card:hover .staff-avatar {
    box-shadow: 0 0 0 4px var(--staff-accent);
    transform: scale(1.06);
}

.staff-role {
    color: var(--staff-accent);
    margin: 0.2rem 0 0.75rem;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.staff-desc {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
    flex: 1;
}

/* staff card colours */
.staff-card.blue   { --staff-accent: #16477B; --staff-bg: #e8f1f8; }
.staff-card.green  { --staff-accent: #618B67; --staff-bg: #f0f7f1; }
.staff-card.purple { --staff-accent: #7C6BAF; --staff-bg: #f3f1f9; }

/* footer band */
.page-footer-band {
    background: linear-gradient(135deg, #16477B 0%, #1a5a99 60%, #618B67 100%);
    margin-top: 3rem;
    padding: 3rem 2rem;
    text-align: center;
    color: rgba(255,255,255,0.85);
}

.page-footer-band h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-footer-band p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-band-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-band-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.2s;
}

.footer-band-link:hover {
    background: rgba(255,255,255,0.28);
}

.footer-band-link .material-symbols-outlined {
    font-size: 1.1rem;
}

/* mobile nav footer item */
.nav-tour-item {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.nav-tour-btn {
    width: 100%;
    background: var(--silk-light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--silk-text);
    font-weight: 500;
}

.nav-tour-btn .material-symbols-outlined {
    color: var(--silk-orange);
}

/* welcome popup */
.welcome-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    z-index: 500;
    overflow: hidden;
    animation: popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275) both;
    border: 2px solid var(--silk-light);
}

.welcome-popup.hiding {
    animation: popOut 0.4s ease forwards;
}

.welcome-popup-header {
    background: linear-gradient(135deg, #16477B, #1a5a99);
    padding: 1.2rem 1.2rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.welcome-mascot {
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: top;
    flex-shrink: 0;
    animation: mascotBob 3s ease-in-out infinite;
}

.welcome-popup-header h3 {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.welcome-popup-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.welcome-popup-body {
    padding: 1rem 1.2rem 1.2rem;
}

.welcome-popup-body p {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.welcome-popup-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-tutorial {
    flex: 1;
    background: var(--silk-blue);
    color: white;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-tutorial:hover { background: #0f2f54; }

.btn-dismiss {
    background: var(--silk-light);
    color: #555;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-dismiss:hover { background: #ccd6e0; }

.welcome-timer {
    height: 3px;
    background: var(--silk-light);
    position: relative;
    overflow: hidden;
}

.welcome-timer-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: var(--silk-orange);
    width: 100%;
    animation: timerShrink 60s linear forwards;
}

/* tutorial overlay */
body.tutorial-active {
    overflow: hidden;
    pointer-events: none;
}

.tutorial-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 800;
}

.tutorial-backdrop.active { display: block; }

.tutorial-mask-top,
.tutorial-mask-bottom,
.tutorial-mask-left,
.tutorial-mask-right {
    position: fixed;
    background: rgba(0,0,0,0.65);
    transition: all 0.35s ease;
    pointer-events: auto;
    z-index: 801;
}

.tutorial-ring {
    position: fixed;
    border-radius: 18px;
    outline: 4px solid var(--silk-sage);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(122,158,126,0.25);
    transition: all 0.35s ease;
    pointer-events: none;
    z-index: 802;
}

.tutorial-tooltip {
    position: fixed;
    background: white;
    border-radius: 20px;
    padding: 1.4rem 1.6rem 1.2rem;
    width: 340px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4), 0 0 0 3px var(--silk-sage);
    pointer-events: auto;
    z-index: 803;
}

.tutorial-tooltip-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.tutorial-tooltip .tt-mascot {
    width: 56px;
    height: 56px;
    object-fit: contain;
    object-position: top;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.tutorial-tooltip h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--silk-blue);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
}

.tutorial-tooltip p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.tutorial-counter {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
}

.tutorial-counter .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--silk-light);
    transition: background 0.2s;
}

.tutorial-counter .dot.active {
    background: var(--silk-sage);
    width: 20px;
    border-radius: 4px;
}

.tutorial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tutorial-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
}

.tutorial-nav-btns { display: flex; gap: 0.5rem; }

.btn-tt {
    background: var(--silk-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
}

.btn-tt:hover { background: #0f2f54; }

.btn-tt.secondary {
    background: var(--silk-light);
    color: #555;
}

.btn-tt.secondary:hover { background: #ccd6e0; }

.btn-tt-close {
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.1rem 0.2rem;
    pointer-events: auto;
    flex-shrink: 0;
}

.btn-tt-close:hover { color: #555; }

.tt-progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.tt-progress-fill {
    height: 100%;
    background: var(--silk-blue);
    border-radius: 0 0 14px 14px;
    transition: none;
}

.tt-progress-fill.animating {
    transition: width 4s linear;
}

/* animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes popIn {
    from { opacity:0; transform: translateY(30px) scale(0.9); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

@keyframes popOut {
    to { opacity:0; transform: translateY(30px) scale(0.9); }
}

@keyframes mascotBob {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@keyframes timerShrink {
    from { width: 100%; }
    to   { width: 0%; }
}

/* canva edu gradient button (hero) */
.canva-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    background: linear-gradient(135deg, #618B67 0%, #7C6BAF 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.7rem;
    border-radius: 50px;
    box-shadow: 0 8px 22px rgba(124, 107, 175, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.canva-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 30px rgba(124, 107, 175, 0.45);
}
.canva-btn .material-symbols-outlined { font-size: 1.25rem; }

/* getting started cta button */
.getting-started-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--silk-blue, #16477B);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(22, 71, 123, 0.25);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.getting-started-btn:hover {
    transform: translateY(-2px);
    background: #1a5a99;
    box-shadow: 0 10px 26px rgba(22, 71, 123, 0.32);
}
.getting-started-btn .material-symbols-outlined { font-size: 1.25rem; }

/* responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .getting-started-btn { font-size: 0.92rem; padding: 0.75rem 1.2rem; }
    .canva-btn { font-size: 0.92rem; padding: 0.75rem 1.2rem; }
    .hub-grid { grid-template-columns: 1fr; margin-top: -2rem; }
    .training-banner-content { justify-content: center; text-align: center; }
    .training-banner h2 { width: 100%; }
    .training-btn { margin-top: 0.6rem; }
}
