import SwiftUI

struct SplashView: View {
    @State private var ready = false

    var body: some View {
        ZStack {
            BrandTheme.pageBackground.ignoresSafeArea()

            VStack(spacing: 18) {
                BrandLogoView(height: 160)
                    .opacity(ready ? 1 : 0)
                    .scaleEffect(ready ? 1 : 0.88)

                Text("NOTIFICATIONS. DELIVERED. CONNECTED.")
                    .font(.system(size: 11, weight: .semibold, design: .rounded))
                    .tracking(1.6)
                    .foregroundStyle(BrandTheme.muted)
                    .opacity(ready ? 1 : 0)

                ProgressView()
                    .tint(BrandTheme.accentBright)
                    .opacity(ready ? 1 : 0)
                    .padding(.top, 8)
            }
            .padding(32)
        }
        .onAppear {
            withAnimation(.spring(response: 0.65, dampingFraction: 0.78)) {
                ready = true
            }
        }
    }
}
